commit
cee9648011
1 changed files with 27 additions and 4 deletions
|
@ -20,14 +20,33 @@ 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) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/roles`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/roles`
|
||||||
const GUILD_MEMBER_ROLE = (guildID: string, memberID: string, roleID: string) =>
|
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/members/${memberID}/roles/${roleID}`
|
|
||||||
const GUILD_INTEGRATION = (guildID: string, integrationID: string) =>
|
const GUILD_INTEGRATION = (guildID: string, integrationID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/integrations/${integrationID}`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/integrations/${integrationID}`
|
||||||
const GUILD_INTEGRATIONS = (guildID: string) =>
|
const GUILD_INTEGRATIONS = (guildID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/integrations`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/integrations`
|
||||||
const GUILD_INTEGARTION_SYNC = (guildID: string) =>
|
const GUILD_INTEGARTION_SYNC = (guildID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/integrations?include_appilications=true`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/integrations?include_appilications=true`
|
||||||
|
const GUILD_BAN = (guildID: string, userID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/bans/${userID}`
|
||||||
|
const GUILD_BANS = (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/bans`
|
||||||
|
const GUILD_CHANNEL = (channelID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}`
|
||||||
|
const GUILD_CHANNELS = (guildID: string, channelID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/channels`
|
||||||
|
const GUILD_MEMBER = (guildID: string, memberID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/members/${memberID}`
|
||||||
|
const GUILD_MEMBER_ROLE = (guildID: string, memberID: string, roleID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/members/${memberID}/roles/${roleID}`
|
||||||
|
const GUILD_INVITES = (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/invites`
|
||||||
|
const GUILD_LEAVE = (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/users/@me/guilds/${guildID}`
|
||||||
|
const GUILD_PRUNE = (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/prune`
|
||||||
|
const VANITY_URL = (guildID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/vanity-url`
|
||||||
|
|
||||||
|
|
||||||
//Channel Endpoints
|
//Channel Endpoints
|
||||||
const CHANNEL = (channelID: string) =>
|
const CHANNEL = (channelID: string) =>
|
||||||
|
@ -56,8 +75,6 @@ const CHANNEL_INVITES = (channelID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/invites`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/invites`
|
||||||
const CHANNEL_PINS = (channelID: string) =>
|
const CHANNEL_PINS = (channelID: string) =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/pins`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/pins`
|
||||||
const CHANNEL_WEBHOOKS = (channelID: string) =>
|
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/webhooks`
|
|
||||||
|
|
||||||
//User Endpoints
|
//User Endpoints
|
||||||
const USER = (userID: string) =>
|
const USER = (userID: string) =>
|
||||||
|
@ -65,6 +82,12 @@ const USER = (userID: string) =>
|
||||||
const USER_CREATE_DM = () =>
|
const USER_CREATE_DM = () =>
|
||||||
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/users/@me/channels`
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/users/@me/channels`
|
||||||
|
|
||||||
|
//Webhook Endpoints
|
||||||
|
const WEBHOOKS = (channelID: string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/channels/${channelID}/webhooks`
|
||||||
|
const GUILD_WEBHOOK = (guildID :string) =>
|
||||||
|
`${DISCORD_API_URL}/v${DISCORD_API_VERSION}/guilds/${guildID}/webhooks`
|
||||||
|
|
||||||
//CDN Endpoints
|
//CDN Endpoints
|
||||||
const CUSTOM_EMOJI = (emojiID: string) =>
|
const CUSTOM_EMOJI = (emojiID: string) =>
|
||||||
`${DISCORD_CDN_URL}/emojis/${emojiID}.png`
|
`${DISCORD_CDN_URL}/emojis/${emojiID}.png`
|
||||||
|
|
Loading…
Reference in a new issue