Fix minor bug

- DiscordAPIError: 405: Method Not Allowed
(try delete typing)
This commit is contained in:
March 7th 2022-03-20 19:15:20 +07:00
parent 721d1216e0
commit e6128469fe

View File

@ -219,7 +219,6 @@ class TextBasedChannel {
// const d = await this.client.api.channels[this.id].messages.post({ body, files }); // const d = await this.client.api.channels[this.id].messages.post({ body, files });
const d = await _send(this.client, this.id, body, files); const d = await _send(this.client, this.id, body, files);
console.log(d); console.log(d);
await this.client.api.channels(this.id).typing.delete();
return this.messages.cache.get(d.id) ?? this.messages._add(d); return this.messages.cache.get(d.id) ?? this.messages._add(d);
} }