Fix formatting (deno fmt)

This commit is contained in:
Exists
2021-04-14 13:09:47 -04:00
parent ce36477426
commit 215141171a
3 changed files with 19 additions and 19 deletions
+7 -7
View File
@@ -17,7 +17,7 @@ import { calculateBits } from "../../util/permissions.ts";
/** Create a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server. */
export async function createChannel(
guildId: string,
options?: CreateGuildChannel
options?: CreateGuildChannel,
) {
const requiredPerms: Set<PermissionStrings> = new Set(["MANAGE_CHANNELS"]);
@@ -32,7 +32,7 @@ export async function createChannel(
}
eventHandlers.debug?.(
"loop",
`Running forEach loop in create_channel file.`
`Running forEach loop in create_channel file.`,
);
overwrite.allow.forEach(requiredPerms.add, requiredPerms);
overwrite.deny.forEach(requiredPerms.add, requiredPerms);
@@ -51,13 +51,13 @@ export async function createChannel(
permission_overwrites: useDefaultOverwrites
? options?.permissionOverwrites
: options?.permissionOverwrites?.map((perm) => ({
...perm,
...perm,
allow: calculateBits(perm.allow),
deny: calculateBits(perm.deny),
})),
allow: calculateBits(perm.allow),
deny: calculateBits(perm.deny),
})),
type: options?.type || DiscordChannelTypes.GUILD_TEXT,
}
},
)) as DiscordChannel;
const discordenoChannel = await structures.createDiscordenoChannel(result);