refactor: cleanup and fmt

This commit is contained in:
Skillz4Killz
2021-04-04 12:54:33 +00:00
committed by GitHub
parent 535f27c734
commit 1b8161e85b
26 changed files with 89 additions and 480 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ import {
export async function createChannel(
guildId: string,
name: string,
options?: CreateGuildChannel
options?: CreateGuildChannel,
) {
const requiredPerms: Set<PermissionStrings> = new Set(["MANAGE_CHANNELS"]);
@@ -39,7 +39,7 @@ export async function createChannel(
deny: calculateBits(perm.deny),
})),
type: options?.type || DiscordChannelTypes.GUILD_TEXT,
}
},
)) as DiscordChannel;
const channelStruct = await structures.createChannelStruct(result);