Trying to save information to a sqlite3 database via a command causes this error.
CODE:
@bot.tree.command(name="registeraccount", description="โ ๏ธ ONLY PERSONAL ACCOUNTS AS OF 5/5/24 โ ๏ธ Inserts your data into the MySQL database.")
@app_commands.describe(accountnumber = "Your LACB account number assigned to you when you applied.")
@app_commands.describe(amount = "The amount you have in your LACB account since you have applied.")
async def registeraccount(intergration:discord.Interaction, accountnumber: str, amount: str):
# sql = "INSERT INTO accounts (username, accountnum, amount) VALUES (%s, %s, %s)"
# val = (intergration.user.name, accountnumber, amount)
# c.execute(sql, val)
# ERROR IS IN THE LINE BELOW
c.execute(f"INSERT INTO accounts (discordID, username, accountnum, amount) VALUES (%s, %s, %s, %s)" % (intergration.user.id, intergration.user.name, accountnumber, amount))
# print(val)
await intergration.response.send_message("Information gathered and logged successfully , thank you.")