From b1a7eff5ad18947a2e9263cf8b40cf288fb5807e Mon Sep 17 00:00:00 2001 From: Skillz Date: Thu, 7 May 2020 08:56:17 -0400 Subject: [PATCH] allow catching delete msgs --- structures/message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/message.ts b/structures/message.ts index 89679ba77..f6981afbd 100644 --- a/structures/message.ts +++ b/structures/message.ts @@ -26,7 +26,7 @@ export function createMessage(data: MessageCreateOptions) { if (data.author.id !== botID) { } - RequestManager.delete(endpoints.CHANNEL_MESSAGE(data.channel_id, data.id), { reason }) + return RequestManager.delete(endpoints.CHANNEL_MESSAGE(data.channel_id, data.id), { reason }) }, /** Pin a message in a channel. Requires MANAGE_MESSAGES. Max pins allowed in a channel = 50. */ pin: () => {