mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
add emojiURL function helper
This commit is contained in:
@@ -203,6 +203,11 @@ export function deleteEmoji(guildID: string, id: string, reason?: string) {
|
||||
);
|
||||
}
|
||||
|
||||
/** Creates a url to the emoji from the Discord CDN. */
|
||||
export function emojiURL(id: string, animated = false) {
|
||||
return `https://cdn.discordapp.com/emojis/${id}.${animated ? 'gif' : 'jpg'}`
|
||||
}
|
||||
|
||||
/** Create a new role for the guild. Requires the MANAGE_ROLES permission. */
|
||||
export async function createGuildRole(
|
||||
guild: Guild,
|
||||
|
||||
Reference in New Issue
Block a user