From 972f688144e1cbad7b09441ebf4b3eef42a41925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Fri, 5 Aug 2022 14:56:14 -0300 Subject: [PATCH] Fix --- packages/core/src/structures/channels.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/structures/channels.ts b/packages/core/src/structures/channels.ts index 01f2bb4..365ad5c 100644 --- a/packages/core/src/structures/channels.ts +++ b/packages/core/src/structures/channels.ts @@ -115,7 +115,9 @@ export abstract class BaseChannel implements Model { * @link https://discord.com/developers/docs/topics/gateway#channel-delete */ async delete(channelId?: Snowflake): Promise { - return await this.session.rest.delete(CHANNEL(channelId ?? this.id)); + const deleted = await this.session.rest.delete(CHANNEL(channelId ?? this.id)); + + return ChannelFactory.from(this.session, deleted); } toString(): string {