mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
Update src/helpers/channels/clone_channel.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user