Update src/helpers/channels/clone_channel.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
This commit is contained in:
Skillz4Killz
2021-04-14 08:46:18 -04:00
committed by GitHub
parent 084d149598
commit 6063bc0aff

View File

@@ -12,7 +12,7 @@ export async function cloneChannel(channelId: string, reason?: string) {
//Return undefined if channel is not cached (unsure about error handling)
if (!channelToClone) return;
//If "name" is null or undefined as specified by types
//If "name" is undefined as specified by types
channelToClone.name ??= "new-channel";
//Merge channel data with reason for createChannel options