mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: use guild transformer
This commit is contained in:
parent
dd0a3bf65b
commit
1731d2de6b
@ -14,7 +14,6 @@ import {
|
||||
type AllChannels,
|
||||
BaseChannel,
|
||||
type CreateStickerBodyRequest,
|
||||
Guild,
|
||||
type GuildChannelTypes,
|
||||
channelFrom,
|
||||
} from '../../structures';
|
||||
@ -92,7 +91,7 @@ export class GuildShorter extends BaseShorter {
|
||||
const guild = await this.client.proxy.guilds(guildId).patch({ body, reason });
|
||||
|
||||
if (!this.client.cache.hasGuildsIntent) await this.client.cache.guilds?.patch(CacheFrom.Rest, guildId, guild);
|
||||
return new Guild(this.client, guild);
|
||||
return Transformers.Guild(this.client, guild);
|
||||
}
|
||||
|
||||
list(query?: RESTGetAPICurrentUserGuildsQuery): Promise<AnonymousGuildStructure[]> {
|
||||
|
@ -36,8 +36,8 @@ export interface CreateComponentCollectorResult {
|
||||
run<T extends CollectorInteraction = CollectorInteraction>(
|
||||
customId: UserMatches,
|
||||
callback: ComponentCallback<T>,
|
||||
): any;
|
||||
stop(reason?: string): any;
|
||||
): void;
|
||||
stop(reason?: string): void;
|
||||
}
|
||||
|
||||
export class ComponentHandler extends BaseHandler {
|
||||
|
Loading…
x
Reference in New Issue
Block a user