mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
REST API speed improvement (#1577)
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = function sendMessage(channel, options) {
|
||||
});
|
||||
}
|
||||
|
||||
return channel.client.api.channels(channel.id).messages.post({
|
||||
return channel.client.api.channels[channel.id].messages.post({
|
||||
data: { content, tts, nonce, embed },
|
||||
files,
|
||||
}).then(data => channel.client.actions.MessageCreate.handle(data).message);
|
||||
|
||||
Reference in New Issue
Block a user