23 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it only reponds to the if (!arg)
You should use slash commands
But what exactly is the problem?
command not responding, it only responds when I don't provide an arg (
if(!arg)
)then what is user
I provided an mention
hold on
the
await util.getMember(message.guild, arg)
is made so it detects ids and mentionslet me see the command handler
Just switch to slash commands, it will make your life so much easier .-.
i don't like them
so what was the issue?
idk, we will need more information to actually be able to help
it simply doesn't respond
no errors in console
ok, but we need actually more information than that
Log values, where it stops, etc.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
let me try with that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
The const [, x] destructures the second element in the array
this issue is weird since I have like 15 other command that do similar stuff to this and they work
gonna try logging now
Slash commands would literally make this so much simpler
Regex would not be needed, it's a simple commandName check
fixed it
issue was a missing a } in the else if
also else {}
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View