Add 2 more tests to events
This commit is contained in:
parent
da96bbefa5
commit
49d3d9c449
2 changed files with 135 additions and 8 deletions
|
@ -21,11 +21,6 @@ export class Events {
|
|||
// Emit when a message is sent
|
||||
// Used to check for commands
|
||||
public onMessage(message: Message): IEventResponse {
|
||||
if (!message) return {
|
||||
valid: false,
|
||||
message: "Message was not supplied.",
|
||||
};
|
||||
|
||||
if (!message.guild) return {
|
||||
valid: false,
|
||||
message: "Message was not sent in a guild, ignoring.",
|
||||
|
|
Reference in a new issue