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}.