#Best way to send messages via a bot?
20 messages · Page 1 of 1 (latest)
modals perhaps?
Use a modal or prepare the message in a txt file and send it as a AttachmentOption
no. On modalsubmit you would send the contents of the modal paragraph
I feel sorry for that one guy
Sure you can <@&guildId> and enable the parse everyone in allowedMentions
for role mentions, use the mention syntax. and for everyone ^
In this case it’s not a guy, it’s literally the everyone role but not allowed to be mentioned by them
yeah. For ease maybe make a message have a button called “new announcement” and have that show a modal.
Those were two possibilities, either modal or txt file
Modals are forms you fill out
you can write your announcement inside a modal paragraph input
You write your announcement message in a .txt file. With markdown and everything. Then send it as AttachmentOption with a slashcommand for /announcement or something
Discord.js always has a great, in-depth guide for everything that makes it really easy to understand
If you just send it as attachment in your announcement message it would. But if you instead read the content of the file and put it as content: in your send then it would send the actual message