forked from cadence/out-of-your-element
Convert @room to @everyone using permissions
This commit is contained in:
parent
25cd8cb289
commit
f5ffc09fab
3 changed files with 201 additions and 14 deletions
|
@ -57,7 +57,7 @@ async function withWebhook(channelID, callback) {
|
|||
*/
|
||||
async function sendMessageWithWebhook(channelID, data, threadID) {
|
||||
const result = await withWebhook(channelID, async webhook => {
|
||||
return discord.snow.webhook.executeWebhook(webhook.id, webhook.token, data, {wait: true, thread_id: threadID, disableEveryone: true})
|
||||
return discord.snow.webhook.executeWebhook(webhook.id, webhook.token, data, {wait: true, thread_id: threadID})
|
||||
})
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue