From 4ec74fb36d1e589a4bbff73038f018098d032fdc Mon Sep 17 00:00:00 2001 From: ayntee Date: Thu, 12 Nov 2020 23:21:33 +0400 Subject: [PATCH] Add reason parameter to editChannel() --- src/handlers/channel.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/handlers/channel.ts b/src/handlers/channel.ts index 8a77101e4..d8ce6333b 100644 --- a/src/handlers/channel.ts +++ b/src/handlers/channel.ts @@ -329,6 +329,7 @@ function processEditChannelQueue() { export async function editChannel( channelID: string, options: ChannelEditOptions, + reason: string, ) { const hasManageChannelsPerm = await botHasChannelPermissions( channelID, @@ -389,7 +390,10 @@ export async function editChannel( return RequestManager.patch( endpoints.GUILD_CHANNEL(channelID), - payload, + { + ...payload, + reason, + }, ); }