1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 04:10:59 -05:00

Why is this here?

This commit is contained in:
AnxietyisReal 2023-08-28 12:51:17 +10:00
parent 073d1c07d1
commit 9c7cc4d5b8

View File

@ -14,7 +14,7 @@ export default class Response {
} as const
static create(client:TClient, message:Discord.Message, channel:Discord.Snowflake, keyword:string) {
if (message.channelId != channel || message.type != 0) throw new Error('Invalid channel or message type.');
if (message.channelId != channel || message.type != 0) return;
this.respond(client, message, keyword);
}
static respond(client:TClient, message:Discord.Message, responseKeyword:string) {