Add GUILD_CHANNELS route

This commit is contained in:
Nicolás Serna 2022-07-30 19:56:08 -03:00
parent 7b5fce7603
commit aa147adbf3

View File

@ -483,3 +483,12 @@ export function GUILD_VANITY(guildId: Snowflake): string {
export function GUILD_PREVIEW(guildId: Snowflake): string {
return `/guilds/${guildId}/preview`;
}
/**
* @link https://discord.com/developers/docs/resources/guild#get-guild-channels
* @param guildId The guild id.
* @returns Get guild channels url.
*/
export function GUILD_CHANNELS(guildId: Snowflake): string {
return `/guilds/${guildId}/channels`;
}