#๐ Kick slash command not responding
100 messages ยท Page 1 of 1 (latest)
@vestal galleon
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
@commands.cooldown doesnt work for app commands
discord also provides these as builtin commands
i deleted that part but it is still not working
i forgot about that line when i tried to do normal commands
what error do you get
oh you just never respond
yes
so respond
so funny
?
lmao
i am executing the command running it trying it but no respond
as if my child just doesnt say dada anymore
if you dont respond to the interaction you get application doesnt repond error
no respond in code
oh thats not the full code
!d discord.InteractionResponse
class discord.InteractionResponse```
Represents a Discord interaction response.
This type can be accessed through [`Interaction.response`](https://discordpy.readthedocs.io/en/stable/interactions/api.html#discord.Interaction.response).
New in version 2.0.
you want the full code?
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
i am responding now i know what you mean
one moment
DBKA
here
i took out some add fields for the code to be shorter nvm it
try deferring the interaction first
where should i but it after checking if admin or not?
and then use interaction.followup.send instead of interaction.response.send_message
i mean the code works with users inside the server
at the very top of the function
i meant before admin checking or after
and do this
no
show your updated code
you didnt do this
i did
where
still nothing
show code
no
thats why i am confused too
i even tried debugging it but it just shows nothing
idk if discord is even supporting it or not
wym shows nothing
i mean checking if user is not in the server
oh the print statement?
try re syncing the command
how did you do that again xD
how do you normally sync your commands
okay well you should never sync in your on_ready
some people would say you to use setup_hook but you shouldn't really do that either
how else can i then do it
you should only sync when you add / remove or change the parameters of a command
make it a separate command
and sync that command to one guild where only you can run it
but anyway are you sure you're running the correct command of the correct bot
yep
yep i am not stupid
should i run the bot?
did you really use chatgpt for that
well it won't make much of a difference
ye to be fast xD
but try using a debugger and set breakpoint in that command
on the sync?
well forget about fast, it didnt even do it correctly
no the kick command
one moment
i am running it one second
is this correct?
i really dont understand why there is no response :((
here
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.