async def addstaffroler(ctx, role: discord.Option(discord.SlashCommandOptionType.role, "Enter the role name", required = True)): # type: ignore
db = await connect(
host = "",
user = "",
password = "",
database = ""
)
async with db.cursor(cursor=DictCursor) as cursor:
await cursor.execute("""INSERT IGNORE INTO databaseName.table_name VALUES ("test2");""")
embed = discord.Embed(description=f" Added {role.mention} to the options list",
color=0xe18040).set_footer(text = "")
await ctx.respond(embed = embed)
Basically, I get the right response to the slash command but for some reason nothing is inserted into the database. If I use the same part here ```py
await cursor.execute("""INSERT IGNORE INTO databaseName.table_name VALUES ("test2");""")
