mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
Added nonce support to sendMessage (#553)
This commit is contained in:
@@ -42,7 +42,7 @@ class TextBasedChannel {
|
|||||||
* .catch(console.log);
|
* .catch(console.log);
|
||||||
*/
|
*/
|
||||||
sendMessage(content, options = {}) {
|
sendMessage(content, options = {}) {
|
||||||
return this.client.rest.methods.sendMessage(this, content, options.tts);
|
return this.client.rest.methods.sendMessage(this, content, options.tts, options.nonce);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Send a text-to-speech message to this channel
|
* Send a text-to-speech message to this channel
|
||||||
|
|||||||
Reference in New Issue
Block a user