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,
|
type AllChannels,
|
||||||
BaseChannel,
|
BaseChannel,
|
||||||
type CreateStickerBodyRequest,
|
type CreateStickerBodyRequest,
|
||||||
Guild,
|
|
||||||
type GuildChannelTypes,
|
type GuildChannelTypes,
|
||||||
channelFrom,
|
channelFrom,
|
||||||
} from '../../structures';
|
} from '../../structures';
|
||||||
@ -92,7 +91,7 @@ export class GuildShorter extends BaseShorter {
|
|||||||
const guild = await this.client.proxy.guilds(guildId).patch({ body, reason });
|
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);
|
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[]> {
|
list(query?: RESTGetAPICurrentUserGuildsQuery): Promise<AnonymousGuildStructure[]> {
|
||||||
|
@ -36,8 +36,8 @@ export interface CreateComponentCollectorResult {
|
|||||||
run<T extends CollectorInteraction = CollectorInteraction>(
|
run<T extends CollectorInteraction = CollectorInteraction>(
|
||||||
customId: UserMatches,
|
customId: UserMatches,
|
||||||
callback: ComponentCallback<T>,
|
callback: ComponentCallback<T>,
|
||||||
): any;
|
): void;
|
||||||
stop(reason?: string): any;
|
stop(reason?: string): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ComponentHandler extends BaseHandler {
|
export class ComponentHandler extends BaseHandler {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user