fix: guild webhooks route (#173)

This commit is contained in:
Marcos Susaña 2024-04-01 18:06:25 -04:00 committed by GitHub
parent 206b3dfe63
commit ef8e2e6487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +1,26 @@
import { import {
type APIChannelBase,
type APIGuildChannel,
type APIGuildForumDefaultReactionEmoji,
type APIGuildForumTag,
ChannelFlags, ChannelFlags,
ChannelType, ChannelType,
type RESTGetAPIChannelMessageReactionUsersQuery,
type RESTPatchAPIChannelJSONBody,
type RESTPatchAPIGuildChannelPositionsJSONBody,
type RESTPostAPIChannelWebhookJSONBody,
type RESTPostAPIGuildChannelJSONBody,
type SortOrderType,
VideoQualityMode, VideoQualityMode,
type APIChannelBase,
type APIDMChannel, type APIDMChannel,
type APIGuildCategoryChannel, type APIGuildCategoryChannel,
type APIGuildChannel,
type APIGuildForumChannel, type APIGuildForumChannel,
type APIGuildForumDefaultReactionEmoji,
type APIGuildForumTag,
type APIGuildMediaChannel, type APIGuildMediaChannel,
type APIGuildStageVoiceChannel, type APIGuildStageVoiceChannel,
type APIGuildVoiceChannel, type APIGuildVoiceChannel,
type APINewsChannel, type APINewsChannel,
type APITextChannel, type APITextChannel,
type APIThreadChannel, type APIThreadChannel,
type RESTGetAPIChannelMessageReactionUsersQuery,
type RESTPatchAPIChannelJSONBody,
type RESTPatchAPIGuildChannelPositionsJSONBody,
type RESTPostAPIChannelWebhookJSONBody,
type RESTPostAPIGuildChannelJSONBody,
type SortOrderType,
type ThreadAutoArchiveDuration, type ThreadAutoArchiveDuration,
} from 'discord-api-types/v10'; } from 'discord-api-types/v10';
import { mix } from 'ts-mixer'; import { mix } from 'ts-mixer';
@ -352,7 +352,7 @@ export class WebhookGuildMethods extends DiscordBase {
static guild(ctx: MethodContext<{ guildId: string }>) { static guild(ctx: MethodContext<{ guildId: string }>) {
return { return {
list: () => ctx.client.webhooks.listFromChannel(ctx.guildId), list: () => ctx.client.webhooks.listFromGuild(ctx.guildId),
}; };
} }
} }