Hi,
I have made many bots with Pycord before and have always encountered this same error when trying to create a sub-command group. (This time, I am making a MADFUT bot.) I expected a command like /mf admin pay user:something blablabla, but what came out in Discord was a command (/mf admin pay) without any arguments although I clearly set arguments in the command. Also, when I try running the command, it gives me the error mentioned in the title: AttributeError: '_MissingSentinel' object has no attribute '_get_overridden_method'. Here are some images of the command and the error, and a snippet of my code:
@adminCommands.command(name="pay", description="[ADMIN ONLY] Pay a user. Your wallet will not be affected.")
@commands.has_role(int(config["botPermsRole"]))
async def mf_admin_pay(ctx: discord.ApplicationContext, user:discord.Option(discord.Member, "The user you want to pay."), coins:discord.Option(int, "The amount of coins you want to pay.", default=0), bottrades:discord.Option(int, "The amount of bottrades you want to pay.", default=0), cards:discord.Option(str, "A comma-seperated list of cards you want to pay.", default=""), packs:discord.Option(str, "A comma-seperated list of packs you want to pay.", default="")):
# ... i excluded an unimportant snippet.
await ctx.response.send_message(
embed = discord.Embed(
title = f"Your admin payment was sent to {user.name}",
description = "✅ Your admin payment was successful ✅",
color = EMBED_PRIMARY,
timestamp = datetime.datetime.now()
)
)
