From e6128469fec0d34263c5d4841247dcf6f4594a4a Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 20 Mar 2022 19:15:20 +0700 Subject: [PATCH] Fix minor bug - DiscordAPIError: 405: Method Not Allowed (try delete typing) --- src/structures/interfaces/TextBasedChannel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 739545e..48f8cc5 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -219,7 +219,6 @@ class TextBasedChannel { // const d = await this.client.api.channels[this.id].messages.post({ body, files }); const d = await _send(this.client, this.id, body, files); console.log(d); - await this.client.api.channels(this.id).typing.delete(); return this.messages.cache.get(d.id) ?? this.messages._add(d); }