From 0ec7fac393f47dabaedbee985731b494933b0cbc Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 25 Mar 2022 14:13:45 +0000 Subject: [PATCH] fix: fmt --- bot.ts | 7 ++++++- .../src/bot/events/interactions/slash/setGuildCommands.ts | 2 +- template/bigbot/src/bot/types/command.ts | 2 +- template/bigbot/src/utils/options.ts | 4 ++-- template/bigbot/src/utils/replies.ts | 7 +------ 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bot.ts b/bot.ts index 06ace1cb3..7aa11b11f 100644 --- a/bot.ts +++ b/bot.ts @@ -36,7 +36,12 @@ import { delay, formatImageURL, hasProperty } from "./util/utils.ts"; import { iconBigintToHash, iconHashToBigInt } from "./util/hash.ts"; import { calculateShardId } from "./util/calculateShardId.ts"; import * as handlers from "./handlers/mod.ts"; -import { Interaction, InteractionDataOption, transformInteraction, transformInteractionDataOption } from "./transformers/interaction.ts"; +import { + Interaction, + InteractionDataOption, + transformInteraction, + transformInteractionDataOption, +} from "./transformers/interaction.ts"; import { Integration, transformIntegration } from "./transformers/integration.ts"; import { transformApplication } from "./transformers/application.ts"; import { transformTeam } from "./transformers/team.ts"; diff --git a/template/bigbot/src/bot/events/interactions/slash/setGuildCommands.ts b/template/bigbot/src/bot/events/interactions/slash/setGuildCommands.ts index ea5adcd7f..7e7b6ab43 100644 --- a/template/bigbot/src/bot/events/interactions/slash/setGuildCommands.ts +++ b/template/bigbot/src/bot/events/interactions/slash/setGuildCommands.ts @@ -1,5 +1,5 @@ import { DEV_GUILD_ID } from "../../../../../configs.ts"; -import { DiscordUnavailableGuild, DiscordGatewayPayload } from "../../../../../deps.ts"; +import { DiscordGatewayPayload, DiscordUnavailableGuild } from "../../../../../deps.ts"; import logger from "../../../../utils/logger.ts"; import { updateGuildCommands } from "../../../../utils/updateSlash.ts"; import { BotClient } from "../../../botClient.ts"; diff --git a/template/bigbot/src/bot/types/command.ts b/template/bigbot/src/bot/types/command.ts index caa4ceded..2a7557940 100644 --- a/template/bigbot/src/bot/types/command.ts +++ b/template/bigbot/src/bot/types/command.ts @@ -4,9 +4,9 @@ import { Channel, Interaction, Member, + PermissionStrings, Role, User, - PermissionStrings, } from "../../../deps.ts"; import { PermissionLevelHandlers } from "../../utils/permLevels.ts"; import { BotClient } from "../botClient.ts"; diff --git a/template/bigbot/src/utils/options.ts b/template/bigbot/src/utils/options.ts index 4961bbf70..8d43acfa7 100644 --- a/template/bigbot/src/utils/options.ts +++ b/template/bigbot/src/utils/options.ts @@ -2,14 +2,14 @@ import { ApplicationCommandOption, ApplicationCommandOptionTypes, Bot, + Channel, ChannelTypes, Collection, - Channel, + InteractionDataOption, Member, Message, Role, User, - InteractionDataOption, } from "../../deps.ts"; import { getLanguage, translate } from "../bot/languages/translate.ts"; import { SNOWFLAKE_REGEX } from "../constants/regexes.ts"; diff --git a/template/bigbot/src/utils/replies.ts b/template/bigbot/src/utils/replies.ts index 8f8c908c9..d70f4d59f 100644 --- a/template/bigbot/src/utils/replies.ts +++ b/template/bigbot/src/utils/replies.ts @@ -1,9 +1,4 @@ -import { - Bot, - Interaction, - InteractionApplicationCommandCallbackData, - InteractionResponseTypes, -} from "../../deps.ts"; +import { Bot, Interaction, InteractionApplicationCommandCallbackData, InteractionResponseTypes } from "../../deps.ts"; export async function replyToInteraction( bot: Bot,