diff --git a/src/helpers/channels/clone_channel.ts b/src/helpers/channels/clone_channel.ts index 70b1a2e2d..bed3f4241 100644 --- a/src/helpers/channels/clone_channel.ts +++ b/src/helpers/channels/clone_channel.ts @@ -5,6 +5,7 @@ import { Errors } from "../../types/discordeno/errors.ts"; import { bigintToSnowflake } from "../../util/bigint.ts"; import { calculatePermissions } from "../../util/permissions.ts"; import { createChannel } from "./create_channel.ts"; +import { helpers } from "../mod.ts"; /** Create a copy of a channel */ export async function cloneChannel(channelId: bigint, reason?: string) { @@ -37,5 +38,9 @@ export async function cloneChannel(channelId: bigint, reason?: string) { }; //Create the channel (also handles permissions) - return createChannel(channelToClone.guildId!, createChannelOptions, reason); + return await helpers.createChannel( + channelToClone.guildId!, + createChannelOptions, + reason, + ); }