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,