Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async fn (msg) {
- let usertooof = msg.mentions.members.first()
- if (!usertooof) return msg.channel.send("Can't find that user!")
- if (!msg.member.hasPermission("BAN_MEMBERS")) return msg.channel.send("Not Allowed to OOF!")
- msg.usertooof.send({embed: {
- "title": "title ~~(did you know you can have markdown here too?)~~",
- "description": "this supports [named links](https://discordapp.com) on top of the previously shown subset of markdown. ```\nyes, even code blocks```",
- "url": "https://discordapp.com",
- "color": 314481,
- "timestamp": "2018-07-17T03:13:23.462Z",
- "footer": {
- "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png",
- "text": "footer text"
- },
- "thumbnail": {
- "url": "https://cdn.discordapp.com/embed/avatars/0.png"
- },
- "image": {
- "url": "https://cdn.discordapp.com/embed/avatars/0.png"
- },
- "author": {
- "name": "author name",
- "url": "https://discordapp.com",
- "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png"
- },
- "fields": [
- {
- "name": "🤔",
- "value": "some of these properties have certain limits..."
- },
- {
- "name": "😱",
- "value": "try exceeding some of them!"
- },
- {
- "name": "🙄",
- "value": "an informative error should show up, and this view will remain as-is until all issues are fixed"
- },
- {
- "name": "<:thonkang:219069250692841473>",
- "value": "these last two",
- "inline": true
- },
- {
- "name": "<:thonkang:219069250692841473>",
- "value": "are inline fields",
- "inline": true
- }
- ]
- }
- }
- )}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement