From 7f8e67f5c63e6e4a6f600885ab462c03cc9dc7ab Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:27:30 +0200 Subject: [PATCH] Update edit_channel.ts --- src/helpers/channels/edit_channel.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {