Add reason parameter to editChannel()

This commit is contained in:
ayntee
2020-11-12 23:21:33 +04:00
parent b128530b67
commit 4ec74fb36d

View File

@@ -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,
},
);
}