-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
I defined the confition function, but the command will be executed even if the condition is not true.
System Requirements
MacOS 12.0.1
NodeJs 16.13.1
discord-akairo/master
discord.js 13.3.1
/commands/test.ts
import { Command } from "discord-akairo";
import { Message } from "discord.js";
export default class TestCommand extends Command {
constructor() {
super("test", {
aliases: ["test"],
category: "Test",
description: { content: "Test Command." },
});
}
condition(message: Message): boolean {
return message.author.id === "126485019500871680";
}
async exec(message: Message): Promise<Message> {
return await message.channel.send("Test!");
}
}
Metadata
Metadata
Assignees
Labels
No labels