mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Added nonce support to sendMessage (#553)
This commit is contained in:
@@ -42,7 +42,7 @@ class TextBasedChannel {
|
||||
* .catch(console.log);
|
||||
*/
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user