Closed NeutronicMC closed 4 years ago
Thank’s for sharing your issue, could you please provide a simple example to reproduce ?
When you use a function to return the prefix you must explicitly put ^
before the prefix event if it's string:
function(command: CommandMessage) {
switch(command.guild.name) {
case "guildA":
return "^!";
case "guildB":
return "^.";
}
}
@Discord(dynamicPrefix)
class MyBot {
// ...
}
If a command prefix is found anywhere within a message (not just the beginning) the command still executes.