#๐Ÿ”’ Kick slash command not responding

100 messages ยท Page 1 of 1 (latest)

twilit isleBOT
#

@vestal galleon

Python help channel opened

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.

hot crane
#

@commands.cooldown doesnt work for app commands

#

discord also provides these as builtin commands

vestal galleon
#

i deleted that part but it is still not working

vestal galleon
fierce turtle
#

what error do you get

vestal galleon
#

application doesnt respond

#

no error message

hot crane
#

oh you just never respond

vestal galleon
#

yes

hot crane
#

so respond

vestal galleon
#

so funny

hot crane
#

?

fierce turtle
#

lmao

vestal galleon
#

i am executing the command running it trying it but no respond

#

as if my child just doesnt say dada anymore

fierce turtle
vestal galleon
#

oh thats not the full code

hot crane
#

!d discord.InteractionResponse

twilit isleBOT
#

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.
vestal galleon
#

you want the full code?

hot crane
#

.send_message(), .send_modal(), .defer(), etc

#

yes?

#

!paste - why wouldnt we

twilit isleBOT
#
Pasting large amounts of 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.

vestal galleon
#

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

fierce turtle
vestal galleon
#

where should i but it after checking if admin or not?

fierce turtle
#

and then use interaction.followup.send instead of interaction.response.send_message

vestal galleon
#

i mean the code works with users inside the server

fierce turtle
vestal galleon
fierce turtle
#

before

#

do await interaction.response.defer()

vestal galleon
#

i am running it

#

kinda nervous

#

still no response....

fierce turtle
#

any error

#

in the logs

vestal galleon
#

no

fierce turtle
#

show your updated code

vestal galleon
#

sure

vestal galleon
#

i did

fierce turtle
#

where

vestal galleon
#

ohhhhh i am dumb

#

i put it in the response below xD

#

give me 1 min

vestal galleon
fierce turtle
#

show code

vestal galleon
fierce turtle
#

no errors?

#

in your terminal

vestal galleon
#

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

fierce turtle
#

wym shows nothing

vestal galleon
#

i mean checking if user is not in the server

fierce turtle
#

oh the print statement?

vestal galleon
#

yes

#

no print

fierce turtle
#

try re syncing the command

vestal galleon
#

how did you do that again xD

fierce turtle
#

how do you normally sync your commands

vestal galleon
#

main file

#

with this wait

fierce turtle
#

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

vestal galleon
#

how else can i then do it

fierce turtle
#

you should only sync when you add / remove or change the parameters of a command

fierce turtle
#

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

vestal galleon
#

should i run the bot?

fierce turtle
#

did you really use chatgpt for that

fierce turtle
vestal galleon
fierce turtle
#

but try using a debugger and set breakpoint in that command

vestal galleon
#

on the sync?

fierce turtle
fierce turtle
vestal galleon
vestal galleon
#

is this correct?

#

i really dont understand why there is no response :((

vestal galleon
twilit isleBOT
#
Python help channel closed using Discord native close action

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.