Add Emoji Endpoints
This commit is contained in:
parent
83567c1b35
commit
f41f60beb4
1 changed files with 11 additions and 5 deletions
|
@ -16,10 +16,6 @@ const GUILD_WIDGET = (guildID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/widget`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/widget`
|
||||||
const GUILD_EMOJI = (guildID: string, emoji_id: string) =>
|
const GUILD_EMOJI = (guildID: string, emoji_id: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/emojis/${emoji_id}`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/emojis/${emoji_id}`
|
||||||
const GUILD_EMOJIS = (guildID: string) =>
|
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/emojis`
|
|
||||||
const GUILD_REGIONS = (guildID: string) =>
|
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/regions`
|
|
||||||
const GUILD_ROLE = (guildID: string, roleID: string) =>
|
const GUILD_ROLE = (guildID: string, roleID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/roles/${roleID}`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/roles/${roleID}`
|
||||||
const GUILD_ROLES = (guildID: string) =>
|
const GUILD_ROLES = (guildID: string) =>
|
||||||
|
@ -47,6 +43,12 @@ const CHANNEL_CROSSPOST = (channelID: string, messageID: string) =>
|
||||||
const MESSAGE_REACTION = (channelID: string, messageID: string, emoji: string) =>
|
const MESSAGE_REACTION = (channelID: string, messageID: string, emoji: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/messages/${messageID}/reactions/${emoji}/@me`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/messages/${messageID}/reactions/${emoji}/@me`
|
||||||
|
|
||||||
|
//Emoji Endpoints
|
||||||
|
const EMOJI = (guildID: string, emojiID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}//guilds/${guildID}/emojis/${emojiID}`
|
||||||
|
const EMOJIS = (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}//guilds/${guildID}/emojis`
|
||||||
|
|
||||||
//User Endpoints
|
//User Endpoints
|
||||||
const USER = (userID: string) =>
|
const USER = (userID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/users/${userID}`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/users/${userID}`
|
||||||
|
@ -74,3 +76,7 @@ const ACHIEVEMENT_ICON = (applicationID: string, achievementID: string, iconHAS
|
||||||
`${DISCORD_CDN_URL}/app-assets/${applicationID}/achievements/${achievementID}/icons/${iconHASH}.png`
|
`${DISCORD_CDN_URL}/app-assets/${applicationID}/achievements/${achievementID}/icons/${iconHASH}.png`
|
||||||
const TEAM_ICON = (teamID: string, iconID: string) =>
|
const TEAM_ICON = (teamID: string, iconID: string) =>
|
||||||
`${DISCORD_CDN_URL}/team-icons/${teamID}/${iconID}.png`
|
`${DISCORD_CDN_URL}/team-icons/${teamID}/${iconID}.png`
|
||||||
|
|
||||||
|
//Voice Endpoint
|
||||||
|
const VOICE_REGIONS= (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/regions`
|
Loading…
Reference in a new issue