#command thing
48 messages · Page 1 of 1 (latest)
why dont the slash commands work?
Do you even have proper slash command files
where
i dont see any command
that's not a slash command
do you even respond to the interaction in your command?
?
you probably don't respond to the interaction (the slash command response) in your command file
Responding to interactions:
• #reply immediately respond with a message
• #update immediately update the original message (buttons, select menus)
• #showModal immediately show a modal (cannot be deferred)
• #deferReply/Update respond later (up to 15 minutes)
• #followUp post an additional message
The initial response has to happen within 3s of receiving the interaction!
Exactly
the guide specifically covers responding to a simple ping command
ok so thats exactly why your slash command isn't working
because you never responded to the interaction
make sure you add those missing intents as shown above and adding that interaction.reply to your slash command
you dont have client or user defined
you can use interaction.user for the user and interaction.client for the client
and also, you dont even need to use that var since the value isn't changed
so just use const
shouldn't use var at all
let is preferred highly over var
its not defined in the code you sent so im not sure how that's relevant
this is how you can define them in that command
for message, message.author (which is the same as interaction.user) and message.client
no worries
correct
you still need to access client.user
yes
please stop pinging me
maybe you shouldn't set your client's username every 5 seconds
you're probably rate limited
Yeah cuz the ratelimit is somewhere around twice in an hour or something like that


Usernames arent nicknames
guild.members.me.setNickname()
Yea
interaction.guild is the guild
Is that what I said
Spoiler: || no ||
.
I already told you
That refers to the clients guildmember object