Skip to main content

$sendMessage

Send message to ctx channel by default or to provided channel.

Errors

  • Cannot send message with 0 args
  • Cannot find channel
  • Cannot send message with empty content or embed

Usage

$sendMessage[(Channel ID;Content;Title;Description;Footer;Footer icon;Color;Thumbnail;Image;Author;Author URL;Author Icon;Return ID)]

Arguments

LabelDescriptionRequired
Channel IDChannel ID to send the message.False
ContentDefault message text outside embed.False
TitleTitle, above description (Embed)False
DescriptionMain text in the embed (Embed)False
FooterSmall text under description (Embed)False
Footer IconIcon next to the footer (Embed, Link)False
ColorEmbed color (Embed, HEX)False
ThumbnailSmall image near title (Embed, Image)False
ImageBig image under description (Embed, Image)False
AuthorAuthor's note above title. (Embed)False
Author URLLink for the author. (Embed, Link)False
Author IconSmall icon near to author, only with Author (Embed, Link)False
Return IDReturns message ID.False

Tags

#addButton

Adds button to message.

Arguments

LabelDescriptionRequired
stylesecondary/success/danger/primary or linkTrue
labellabel of buttonTrue
disabledis disabled(true/false)True
customIDid of buttonTrue
urlURL(only link type)False
emojiUnicode or discord emojiFalse
rowRow of button, default noneFalse

#addField

Adds field to embed in message

Arguments

LabelDescriptionRequired
nameName of field, like titleTrue
valueValue of field, like descriptionTrue
inlineIs this field will be in line, default is falseFalse

#addReaction

Adds reaction to message, same to $addReaction

More tags will be added soon

Examples

  • Example 1:
<Client>.add_command(name='!command', code='''
$sendMessage[Hello, world!]
''')
  • Example 2:
<Client>.add_command(name="!command", code='''
$sendMessage[$userInfo[dm];;Welcome!;Welcome to new guild "$guildInfo[name]";;;0058CF]
''')