mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update clone_channel.ts
This commit is contained in:
@@ -9,7 +9,6 @@ import { createChannel } from "./create_channel.ts";
|
||||
/** Create a copy of a channel */
|
||||
export async function cloneChannel(channelId: bigint, reason?: string) {
|
||||
const channelToClone = await cacheHandlers.get("channels", channelId);
|
||||
//Return undefined if channel is not cached
|
||||
if (!channelToClone) throw new Error(Errors.CHANNEL_NOT_FOUND);
|
||||
|
||||
//Check for DM channel
|
||||
|
||||
Reference in New Issue
Block a user