mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 04:31:05 +00:00
Added nonce support to sendMessage (#553)
This commit is contained in:
parent
4d6c604322
commit
2c056b6418
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue