mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
@@ -46,10 +46,15 @@ class RESTMethods {
|
||||
});
|
||||
}
|
||||
|
||||
sendMessage(channel, content, tts, nonce, file) {
|
||||
sendMessage(channel, content, tts, nonce, disable_everyone, file) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const $this = this;
|
||||
content = this.rest.client.resolver.resolveString(content);
|
||||
|
||||
if (this.rest.client.options.disable_everyone || disable_everyone) {
|
||||
content = content.replace('@everyone', '@\u200beveryone').replace('@here', '@\u200bhere');
|
||||
}
|
||||
|
||||
function req() {
|
||||
$this.rest.makeRequest('post', Constants.Endpoints.channelMessages(channel.id), true, {
|
||||
content, tts, nonce,
|
||||
|
||||
Reference in New Issue
Block a user