Merge pull request #4 from AkiaCode/main
Add Emoji, Template, Voice Endpoints and fix typo
This commit is contained in:
commit
418d14b849
1 changed files with 19 additions and 5 deletions
|
@ -16,10 +16,6 @@ const GUILD_WIDGET = (guildID: string) =>
|
|||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/widget`
|
||||
const GUILD_EMOJI = (guildID: string, emoji_id: string) =>
|
||||
`${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) =>
|
||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/roles/${roleID}`
|
||||
const GUILD_ROLES = (guildID: string) =>
|
||||
|
@ -74,3 +70,21 @@ const ACHIEVEMENT_ICON = (applicationID: string, achievementID: string, iconHAS
|
|||
`${DISCORD_CDN_URL}/app-assets/${applicationID}/achievements/${achievementID}/icons/${iconHASH}.png`
|
||||
const TEAM_ICON = (teamID: string, iconID: string) =>
|
||||
`${DISCORD_CDN_URL}/team-icons/${teamID}/${iconID}.png`
|
||||
|
||||
//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`
|
||||
|
||||
//Template Endpoint
|
||||
const TEMPLATE = (templateCODE: string) =>
|
||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/templates/${templateCODE}`
|
||||
|
||||
//Invite Endpoint
|
||||
const INVITE = (inviteCODE: string) =>
|
||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/invites/${inviteCODE}`
|
||||
|
||||
//Voice Endpoint
|
||||
const VOICE_REGIONS= (guildID: string) =>
|
||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/regions`
|
Loading…
Reference in a new issue