From c53aad2ea8f379bcaa37a2c7fa2657deea750b8a Mon Sep 17 00:00:00 2001 From: LTS20050703 <87189679+lts20050703@users.noreply.github.com> Date: Sat, 14 May 2022 18:03:17 +0700 Subject: [PATCH] style: deno fmt (#2219) --- helpers/channels/forums/createForumPost.ts | 2 +- helpers/channels/forums/mod.ts | 2 +- plugins/permissions/src/channels/forums/createForumPost.ts | 4 ++-- types/discord.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helpers/channels/forums/createForumPost.ts b/helpers/channels/forums/createForumPost.ts index eed59b798..9a5e80d62 100644 --- a/helpers/channels/forums/createForumPost.ts +++ b/helpers/channels/forums/createForumPost.ts @@ -31,7 +31,7 @@ export async function createForumPost( : undefined, file: options.file, components: options.components?.map((component) => bot.transformers.reverse.component(bot, component)), - } + }, ); return bot.transformers.channel(bot, { channel: result, guildId: bot.transformers.snowflake(result.guild_id!) }); diff --git a/helpers/channels/forums/mod.ts b/helpers/channels/forums/mod.ts index 5654e7c46..a768a60f5 100644 --- a/helpers/channels/forums/mod.ts +++ b/helpers/channels/forums/mod.ts @@ -1 +1 @@ -export * from './createForumPost.ts'; \ No newline at end of file +export * from "./createForumPost.ts"; diff --git a/plugins/permissions/src/channels/forums/createForumPost.ts b/plugins/permissions/src/channels/forums/createForumPost.ts index 4785b2ed7..4ec6631f4 100644 --- a/plugins/permissions/src/channels/forums/createForumPost.ts +++ b/plugins/permissions/src/channels/forums/createForumPost.ts @@ -4,11 +4,11 @@ import { requireBotChannelPermissions } from "../../permissions.ts"; export default function createForumPosts(bot: BotWithCache) { const createForumPostsOld = bot.helpers.createForumPosts; - bot.helpers.createForumPosts= async function (channelId, options) { + bot.helpers.createForumPosts = async function (channelId, options) { const channel = bot.channels.get(channelId); if (channel) { - await requireBotChannelPermissions(bot, channel, ["SEND_MESSAGES"]); + await requireBotChannelPermissions(bot, channel, ["SEND_MESSAGES"]); } return await createForumPostsOld(channelId, options); diff --git a/types/discord.ts b/types/discord.ts index 6a7046291..cb2c3b924 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -7,6 +7,7 @@ import { ApplicationFlags, AuditLogEvents, ButtonStyles, + ChannelFlags, ChannelTypes, DefaultMessageNotificationLevels, EmbedTypes, @@ -36,7 +37,6 @@ import { TeamMembershipStates, TextStyles, UserFlags, - ChannelFlags, VerificationLevels, VideoQualityModes, VisibilityTypes,