From 6eb33cd8bffb241e313faa0a93307ae1b4c763f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Fri, 5 Aug 2022 11:12:57 -0300 Subject: [PATCH] Add: GuildChannel.setPermissions --- packages/core/src/structures/channels.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/src/structures/channels.ts b/packages/core/src/structures/channels.ts index f98dd25..e7cb35b 100644 --- a/packages/core/src/structures/channels.ts +++ b/packages/core/src/structures/channels.ts @@ -627,6 +627,10 @@ export class GuildChannel extends BaseChannel implements Model { return new ThreadChannel(this.session, thread, thread.guild_id ?? this.guildId); } + + async setPermissions(overwrites: PermissionsOverwrites[]): Promise { + return this.edit({ permissionOverwrites: overwrites } as EditGuildChannelOptions) + } } /** BaseVoiceChannel */