From 1731d2de6b632e233a26f2bf745467f1b3bd8a52 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Tue, 18 Mar 2025 23:06:03 -0400 Subject: [PATCH] fix: use guild transformer --- src/common/shorters/guilds.ts | 3 +-- src/components/handler.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/shorters/guilds.ts b/src/common/shorters/guilds.ts index 16eed81..0194593 100644 --- a/src/common/shorters/guilds.ts +++ b/src/common/shorters/guilds.ts @@ -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 { diff --git a/src/components/handler.ts b/src/components/handler.ts index 2b3aca0..300ffe0 100644 --- a/src/components/handler.ts +++ b/src/components/handler.ts @@ -36,8 +36,8 @@ export interface CreateComponentCollectorResult { run( customId: UserMatches, callback: ComponentCallback, - ): any; - stop(reason?: string): any; + ): void; + stop(reason?: string): void; } export class ComponentHandler extends BaseHandler {