Skip to main content
Module

x/discordeno/helpers/emojis/deleteEmoji.ts

Discord API library for Deno
Go to Latest
File
import type { Bot } from "../../bot.ts";
/** Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns 204 No Content on success. */export async function deleteEmoji(bot: Bot, guildId: bigint, id: bigint, reason?: string) { await bot.rest.runMethod<undefined>(bot.rest, "DELETE", bot.constants.routes.GUILD_EMOJI(guildId, id), { reason, });}