mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor(*): use async functions (#6210)
This commit is contained in:
@@ -57,12 +57,9 @@ class ReactionManager extends CachedManager {
|
||||
* Removes all reactions from a message.
|
||||
* @returns {Promise<Message>}
|
||||
*/
|
||||
removeAll() {
|
||||
return this.client.api
|
||||
.channels(this.message.channel.id)
|
||||
.messages(this.message.id)
|
||||
.reactions.delete()
|
||||
.then(() => this.message);
|
||||
async removeAll() {
|
||||
await this.client.api.channels(this.message.channel.id).messages(this.message.id).reactions.delete();
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user