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 {