BREAKING: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS (#2473)

* types: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS

* deno fmt

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <to@itoh.at>
This commit is contained in:
LTS20050703
2022-09-17 11:12:42 -05:00
committed by GitHub
co-authored by Skillz4Killz ITOH
parent 7198bba049
commit e88a63770b
4 changed files with 5 additions and 5 deletions
@@ -5,7 +5,7 @@ export function createEmoji(bot: BotWithCache) {
const createEmoji = bot.helpers.createEmoji;
bot.helpers.createEmoji = async function (guildId, id) {
requireBotGuildPermissions(bot, guildId, ["MANAGE_EMOJIS"]);
requireBotGuildPermissions(bot, guildId, ["MANAGE_EMOJIS_AND_STICKERS"]);
return await createEmoji(guildId, id);
};
@@ -5,7 +5,7 @@ export function deleteEmoji(bot: BotWithCache) {
const deleteEmoji = bot.helpers.deleteEmoji;
bot.helpers.deleteEmoji = async function (guildId, id) {
requireBotGuildPermissions(bot, guildId, ["MANAGE_EMOJIS"]);
requireBotGuildPermissions(bot, guildId, ["MANAGE_EMOJIS_AND_STICKERS"]);
return await deleteEmoji(guildId, id);
};
+1 -1
View File
@@ -5,7 +5,7 @@ export function editEmoji(bot: BotWithCache) {
const editEmoji = bot.helpers.editEmoji;
bot.helpers.editEmoji = async function (guildId, id, options) {
requireBotGuildPermissions(bot, guildId, ["MANAGE_EMOJIS"]);
requireBotGuildPermissions(bot, guildId, ["MANAGE_EMOJIS_AND_STICKERS"]);
return await editEmoji(guildId, id, options);
};
+2 -2
View File
@@ -630,8 +630,8 @@ export enum BitwisePermissionFlags {
MANAGE_ROLES = 0x0000000010000000,
/** Allows management and editing of webhooks */
MANAGE_WEBHOOKS = 0x0000000020000000,
/** Allows management and editing of emojis */
MANAGE_EMOJIS = 0x0000000040000000,
/** Allows management and editing of emojis and stickers */
MANAGE_EMOJIS_AND_STICKERS = 0x0000000040000000,
/** Allows members to use application commands in text channels */
USE_SLASH_COMMANDS = 0x0000000080000000,
/** Allows for requesting to speak in stage channels. */