mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-05 00:53:04 +00:00
[AB-xxx] ignore slash command only commands for message commands
This commit is contained in:
@@ -88,6 +88,9 @@ public class CommandManager implements CommandRegistry {
|
|||||||
if (commandConfiguration == null) {
|
if (commandConfiguration == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (commandConfiguration.isSlashCommandOnly()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!commandNameOrAliasMatches(name, commandConfiguration)) {
|
if (!commandNameOrAliasMatches(name, commandConfiguration)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user