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:
toast-ts 2023-08-28 12:51:17 +10:00
parent 9ea8b91e8c
commit e241791dab

View File

@ -14,7 +14,7 @@ export default class Response {
} as const } as const
static create(client:TClient, message:Discord.Message, channel:Discord.Snowflake, keyword:string) { 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); this.respond(client, message, keyword);
} }
static respond(client:TClient, message:Discord.Message, responseKeyword:string) { static respond(client:TClient, message:Discord.Message, responseKeyword:string) {