You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
command.commandName return last command name inside a class. This happens when you define multiple commands under single class using decorator. Below this the example code of this issue
Not sure if this is related.. but in a guard, the message.commandName always returns the first command called... issue can be replicated with this throttle guard outlined below.
For the full project, see my repo at https://github.com/tonyeung/statics.bot. Please note that the throttle guard I have in the project has a working version where I pass the command name into the guard as a workaround.
command.commandName
return last command name inside a class. This happens when you define multiple commands under single class using decorator. Below this the example code of this issueit returns
comic
for all commandName for defined commands in this class such as forqr
it will return commandNamecomic
.https://discordapp.com/channels/693401527494377482/693401527494377485/718265975283122216
The text was updated successfully, but these errors were encountered: