mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Clean up Actions code (#591)
This commit is contained in:
committed by
Amish Shah
parent
432c5ccc82
commit
59a5862f2d
@@ -54,7 +54,7 @@ class RESTMethods {
|
||||
$this.rest.makeRequest('post', Constants.Endpoints.channelMessages(channel.id), true, {
|
||||
content, tts, nonce,
|
||||
}, file)
|
||||
.then(data => resolve($this.rest.client.actions.MessageCreate.handle(data).m))
|
||||
.then(data => resolve($this.rest.client.actions.MessageCreate.handle(data).message))
|
||||
.catch(reject);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ class RESTMethods {
|
||||
resolve(this.rest.client.actions.MessageDelete.handle({
|
||||
id: message.id,
|
||||
channel_id: message.channel.id,
|
||||
}).m);
|
||||
}).message);
|
||||
})
|
||||
.catch(reject);
|
||||
});
|
||||
@@ -286,7 +286,7 @@ class RESTMethods {
|
||||
resolve(this.rest.client.actions.GuildMemberRemove.handle({
|
||||
guild_id: guild.id,
|
||||
user: member.user,
|
||||
}).m);
|
||||
}).member);
|
||||
})
|
||||
.catch(reject);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user