style: deno fmt (#2219)

This commit is contained in:
LTS20050703
2022-05-14 18:03:17 +07:00
committed by GitHub
parent 544cfdbc1c
commit c53aad2ea8
4 changed files with 5 additions and 5 deletions

View File

@@ -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!) });

View File

@@ -1 +1 @@
export * from './createForumPost.ts';
export * from "./createForumPost.ts";

View File

@@ -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);

View File

@@ -7,6 +7,7 @@ import {
ApplicationFlags,
AuditLogEvents,
ButtonStyles,
ChannelFlags,
ChannelTypes,
DefaultMessageNotificationLevels,
EmbedTypes,
@@ -36,7 +37,6 @@ import {
TeamMembershipStates,
TextStyles,
UserFlags,
ChannelFlags,
VerificationLevels,
VideoQualityModes,
VisibilityTypes,