mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: guild webhooks route (#173)
This commit is contained in:
parent
206b3dfe63
commit
ef8e2e6487
@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user