From 1124d56603b528bcb833f37227279055b0c8e03f Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 27 Jun 2022 22:49:26 -0500 Subject: [PATCH] fix: fmt --- structures/AnonymousGuild.ts | 8 ++++---- structures/Guild.ts | 3 +-- structures/Message.ts | 14 ++++++++------ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/structures/AnonymousGuild.ts b/structures/AnonymousGuild.ts index e851e57..fa86532 100644 --- a/structures/AnonymousGuild.ts +++ b/structures/AnonymousGuild.ts @@ -31,22 +31,22 @@ export class AnonymousGuild extends BaseGuild implements Model { description?: string; premiumSubscriptionCount?: number; - splashUrl(options: { size?: ImageSize, format?: ImageFormat } = { size: 128 }) { + splashUrl(options: { size?: ImageSize; format?: ImageFormat } = { size: 128 }) { if (this.splashHash) { return formatImageUrl( Routes.GUILD_SPLASH(this.id, iconBigintToHash(this.splashHash)), options.size, - options.format + options.format, ); } } - bannerUrl(options: { size?: ImageSize, format?: ImageFormat } = { size: 128 }) { + bannerUrl(options: { size?: ImageSize; format?: ImageFormat } = { size: 128 }) { if (this.bannerHash) { return formatImageUrl( Routes.GUILD_BANNER(this.id, iconBigintToHash(this.bannerHash)), options.size, - options.format + options.format, ); } } diff --git a/structures/Guild.ts b/structures/Guild.ts index 4df0058..b3d387f 100644 --- a/structures/Guild.ts +++ b/structures/Guild.ts @@ -140,13 +140,12 @@ export class Guild extends BaseGuild implements Model { // TODO: edit role - async deleteInvite(inviteCode: string): Promise { await this.session.rest.runMethod( this.session.rest, "DELETE", Routes.INVITE(inviteCode), - {} + {}, ); } diff --git a/structures/Message.ts b/structures/Message.ts index 61d81ee..bf9b2af 100644 --- a/structures/Message.ts +++ b/structures/Message.ts @@ -160,12 +160,14 @@ export class Message implements Model { users: options.allowedMentions?.users, replied_user: options.allowedMentions?.repliedUser, }, - message_reference: options.messageReference ? { - message_id: options.messageReference.messageId, - channel_id: options.messageReference.channelId, - guild_id: options.messageReference.guildId, - fail_if_not_exists: options.messageReference.failIfNotExists ?? true, - } : undefined, + message_reference: options.messageReference + ? { + message_id: options.messageReference.messageId, + channel_id: options.messageReference.channelId, + guild_id: options.messageReference.guildId, + fail_if_not_exists: options.messageReference.failIfNotExists ?? true, + } + : undefined, }, );