diff --git a/src/helpers/channels/edit_channel.ts b/src/helpers/channels/edit_channel.ts index d6e06fda2..dfb064c7d 100644 --- a/src/helpers/channels/edit_channel.ts +++ b/src/helpers/channels/edit_channel.ts @@ -1,6 +1,7 @@ import { eventHandlers } from "../../bot.ts"; import { rest } from "../../rest/rest.ts"; import { ModifyChannel } from "../../types/channels/modify_channel.ts"; +import { Channel } from "../../types/mod.ts"; import { endpoints } from "../../util/constants.ts"; import { calculateBits, @@ -58,7 +59,7 @@ export async function editChannel( }), }; - const result = await rest.runMethod( + return await rest.runMethod( "patch", endpoints.CHANNEL_BASE(channelId), { @@ -66,8 +67,6 @@ export async function editChannel( reason, }, ); - - return result; } interface EditChannelRequest {