mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
9 lines
369 B
TypeScript
9 lines
369 B
TypeScript
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.endpoints.GUILD_EMOJI(guildId, id), {
|
|
reason,
|
|
});
|
|
}
|