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 {
|
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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user