mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
refactor(*): use async functions (#6210)
This commit is contained in:
@@ -57,10 +57,10 @@ class GuildStickerManager extends CachedManager {
|
||||
|
||||
const data = { name, tags, description: description ?? '' };
|
||||
|
||||
return this.client.api
|
||||
const sticker = await this.client.api
|
||||
.guilds(this.guild.id)
|
||||
.stickers.post({ data, files: [file], reason, dontUsePayloadJSON: true })
|
||||
.then(sticker => this.client.actions.GuildStickerCreate.handle(this.guild, sticker).sticker);
|
||||
.stickers.post({ data, files: [file], reason, dontUsePayloadJSON: true });
|
||||
return this.client.actions.GuildStickerCreate.handle(this.guild, sticker).sticker;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user