mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
style: deno fmt (#2219)
This commit is contained in:
@@ -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!) });
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from './createForumPost.ts';
|
||||
export * from "./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);
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
ApplicationFlags,
|
||||
AuditLogEvents,
|
||||
ButtonStyles,
|
||||
ChannelFlags,
|
||||
ChannelTypes,
|
||||
DefaultMessageNotificationLevels,
|
||||
EmbedTypes,
|
||||
@@ -36,7 +37,6 @@ import {
|
||||
TeamMembershipStates,
|
||||
TextStyles,
|
||||
UserFlags,
|
||||
ChannelFlags,
|
||||
VerificationLevels,
|
||||
VideoQualityModes,
|
||||
VisibilityTypes,
|
||||
|
||||
Reference in New Issue
Block a user