Skip to content

Endpoints

const Endpoints: object

Defined in: package/src/utils/endpoints.ts:3

channel(channelId): `https://discord.com/api/v10/channels/${string}`

  • GET /channels/{channelId}

string

Channel ID

`https://discord.com/api/v10/channels/${string}`

channelMessages(channelId): `https://discord.com/api/v10/channels/${string}/messages`

  • GET /channels/{channelId}/messages
  • POST /channels/{channelId}/messages

string

Channel ID

`https://discord.com/api/v10/channels/${string}/messages`

gateway(): "https://discord.com/api/v10/gateway"

  • GET /gateway

"https://discord.com/api/v10/gateway"

gatewayBot(): "https://discord.com/api/v10/gateway/bot"

  • GET /gateway/bot

"https://discord.com/api/v10/gateway/bot"

guild(guildId): `https://discord.com/api/v10/guilds/${string}`

  • GET /guilds/{guildId}
  • PATCH /guilds/{guildId}

string

Guild ID

`https://discord.com/api/v10/guilds/${string}`

guildPreview(guildId): `https://discord.com/api/v10/guilds/${string}/preview`

  • GET /guilds/{guildId}/preview

string

Guild ID

`https://discord.com/api/v10/guilds/${string}/preview`

user(userId?): `https://discord.com/api/v10/users/${string}`

  • GET /users/{userId}

string = "@me"

User ID (default: “@me”)

`https://discord.com/api/v10/users/${string}`