From ef8e2e6487121e82ca9d393584a6524b395e0f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Susa=C3=B1a?= Date: Mon, 1 Apr 2024 18:06:25 -0400 Subject: [PATCH] fix: guild webhooks route (#173) --- src/structures/channels.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/structures/channels.ts b/src/structures/channels.ts index 3ea183f..bb8b298 100644 --- a/src/structures/channels.ts +++ b/src/structures/channels.ts @@ -1,26 +1,26 @@ import { - type APIChannelBase, - type APIGuildChannel, - type APIGuildForumDefaultReactionEmoji, - type APIGuildForumTag, ChannelFlags, ChannelType, - type RESTGetAPIChannelMessageReactionUsersQuery, - type RESTPatchAPIChannelJSONBody, - type RESTPatchAPIGuildChannelPositionsJSONBody, - type RESTPostAPIChannelWebhookJSONBody, - type RESTPostAPIGuildChannelJSONBody, - type SortOrderType, VideoQualityMode, + type APIChannelBase, type APIDMChannel, type APIGuildCategoryChannel, + type APIGuildChannel, type APIGuildForumChannel, + type APIGuildForumDefaultReactionEmoji, + type APIGuildForumTag, type APIGuildMediaChannel, type APIGuildStageVoiceChannel, type APIGuildVoiceChannel, type APINewsChannel, type APITextChannel, type APIThreadChannel, + type RESTGetAPIChannelMessageReactionUsersQuery, + type RESTPatchAPIChannelJSONBody, + type RESTPatchAPIGuildChannelPositionsJSONBody, + type RESTPostAPIChannelWebhookJSONBody, + type RESTPostAPIGuildChannelJSONBody, + type SortOrderType, type ThreadAutoArchiveDuration, } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; @@ -352,7 +352,7 @@ export class WebhookGuildMethods extends DiscordBase { static guild(ctx: MethodContext<{ guildId: string }>) { return { - list: () => ctx.client.webhooks.listFromChannel(ctx.guildId), + list: () => ctx.client.webhooks.listFromGuild(ctx.guildId), }; } }