mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
style: deno fmt (#2219)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user