#apps return error

1 messages · Page 1 of 1 (latest)

mild flame
#
import os 

from interactions import Client, Extension, context_menu, CommandType, InteractionContext

from resources.verification import verificationCog 
verificationCog = verificationCog()


class MyExtension(Extension):
    def __init__(self, client: Client):
        self.client = client
    @context_menu(name="update", context_type=CommandType.USER)
    async def update(self, ctx: InteractionContext):
        await ctx.defer()

        await verificationCog.verification(ctx, ctx.target, self.client)    
        
def setup(client):
    MyExtension(client)
Ignoring exception in cmd `/update`: HTTPException: 400|Bad Request: type BASE_TYPE_CHOICES: Value must be one of {9, 10, 4, 5}.
hasty birch
#

Im gunna need more than that to go on; you've shown me a context menu, but nothing else. that error comes from executing a command, not syncing - so im going to need to see whats going on in verificationCog.verification