#discord.errors.NotFound 404 Not Found (error code 10062) Unknown interaction

1 messages · Page 1 of 1 (latest)

carmine prawn
#

You are responding after the 3 seconds discord gives you to respond. Consider using ctx.defer() in commands that take some time to process

topaz sail
topaz sail
vague pewter
topaz sail
vague pewter
topaz sail
#

right after async def?

vague pewter
#

Yep

topaz sail
#

okay done

#

i did

#

ctx.defer()

vague pewter
#

Await it

topaz sail
#

ok done

vague pewter
#

Is the error still there

topaz sail
#

lemme try

#

bro it will take some time @vague pewter

#

my cogs aren't loading

#

they were loading yesterday but now suddenly don't lmao

#

py-cord isn't giving errors

vague pewter
#

Oh yeah that bug

#

Idk how to fix it

#

I don't think the devs know either

topaz sail
#

great

vague pewter
topaz sail
#

my code is perfect, nothing wrong

vague pewter
#

I've only faced it once so far

topaz sail
#

i fixed it somehow

#

but now it stopped

#

The error discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction is being thrown when I run a simple msg = await ctx.respond(f"Your dish is being prepared! Come back in {value[5]/60:.1f} minute(s).").

Why so?

Also, the parameter ctx in my function is as follows:

    async def cook(self,
                   ctx: discord.ApplicationContext,
                   dish: Option(str, required=True),
                   amount: Option(int, required=False)=1):
warm python
#

try to remove "self" parameter