Denizen dcommands11/23/2023 ![]() ![]() discordmessage id:mybot channel: attach_files: mcmonkey haha text files amirite gotta abuse em ] > #Use to send a short and simple text-file message to a channel. discordmessage id:mybot user: "Hello world!" #Use to send a message to a user through a private channel. ![]() ~discordmessage id:mybot channel:1234 "Hello world!" save:sent - announce "Sent as " #Use to message a Discord channel and record the new message ID. discordmessage id:mybot channel:1234 embed: #Use to message an embed to a Discord channel. discordmessage id:mybot reply: "Hello world!" #Use to reply to a message from a message received event. discordmessage id:mybot channel:1234 "Hello world!" #Use to message a Discord channel with a copied channel ID. is an example of a tag that will return an appropriate channel object for a named channel in a named group. returns the DiscordMessageTag of the sent message, when the command is ~waited for. You can use "rows" to attach action rows of components, such as buttons to the message, using ObjectType: DiscordButtonTag, and ObjectType: DiscordSelectionTag. You can use "attach_file_name:" and "attach_file_text:" to attach a text file with longer content than a normal message allows.Īlternatively, you can use "attach_files:" to attach files as a MapTag of the name of the file to the text or a BinaryTag. You can edit an existing message by using "edit:". ![]() To get IDs, enable "Developer Mode" in your Discord settings, then right click on the channel and press "Copy ID". If sending as a reply, optionally use "no_mention" to disable the default reply pinging the original user.Ĭhannels can be specified as either a copied ID, or using any tag that returns a valid DiscordChannelTag. You can send the message to: a channel, user, or in reply to a previous message. ) (attach_files : )Ĭommand may fail if the bot does not have permission within the Discord group to send a message in that channel. Learn about how commands work in The Beginner's Guide.ĭiscordmessage (id : ) ( ) (no_mention) (rows : ) (embed : |. Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |