tests: add deleteChannel tests

This commit is contained in:
Skillz4Killz
2021-04-09 17:20:41 +00:00
committed by GitHub
parent 16f5293211
commit a44f968745
4 changed files with 90 additions and 2 deletions
-2
View File
@@ -14,7 +14,6 @@ import {
/** Create a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server. */
export async function createChannel(
guildId: string,
name: string,
options?: CreateGuildChannel,
) {
const requiredPerms: Set<PermissionStrings> = new Set(["MANAGE_CHANNELS"]);
@@ -31,7 +30,6 @@ export async function createChannel(
endpoints.GUILD_CHANNELS(guildId),
{
...options,
name,
permission_overwrites: options?.permissionOverwrites?.map((perm) => ({
...perm,