From 5202e3f6ae10df796c361619a20e7240c3c48f6b Mon Sep 17 00:00:00 2001 From: ITOH Date: Sat, 19 Jun 2021 17:12:23 +0200 Subject: [PATCH] remove todos --- src/helpers/channels/delete_channel.ts | 1 - src/helpers/channels/edit_channel.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/helpers/channels/delete_channel.ts b/src/helpers/channels/delete_channel.ts index 894cb4883..c9df3bcc1 100644 --- a/src/helpers/channels/delete_channel.ts +++ b/src/helpers/channels/delete_channel.ts @@ -20,7 +20,6 @@ export async function deleteChannel(channelId: bigint, reason?: string) { throw new Error(Errors.UPDATES_CHANNEL_CANNOT_BE_DELETED); } - // TODO(threads): check if this requires guild perms or channel is enough await requireBotGuildPermissions(guild, ["MANAGE_CHANNELS"]); } diff --git a/src/helpers/channels/edit_channel.ts b/src/helpers/channels/edit_channel.ts index d4805f026..05e577954 100644 --- a/src/helpers/channels/edit_channel.ts +++ b/src/helpers/channels/edit_channel.ts @@ -9,7 +9,6 @@ import { endpoints } from "../../util/constants.ts"; import { calculateBits, requireOverwritePermissions } from "../../util/permissions.ts"; import { snakelize } from "../../util/utils.ts"; -//TODO: implement DM group channel edit /** Update a channel's settings. Requires the `MANAGE_CHANNELS` permission for the guild. */ export async function editChannel(channelId: bigint, options: ModifyChannel, reason?: string) { const channel = await cacheHandlers.get("channels", channelId);