mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
co-authored by
Skillz4Killz
ITOH
parent
7198bba049
commit
e88a63770b
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user