username = str(user.name) + "#" + str(user.discriminator)
cur.execute(f"INSERT INTO {ds_name} (user) VALUES(?)", username, )
Ignoring exception in command warn:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 172, in wrapped
ret = await coro(*args, **kwargs)
File "<string>", line 47, in warn
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 11 supplied.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/bot_base.py", line 578, in invoke
await ctx.command.invoke(ctx)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 914, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 181, in wrapped
raise CommandInvokeError(exc) from exc
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 11 supplied.
@bot.command()
async def warn(ctx, user : disnake.User, *, reason = None):
ds_name = "ds_" + str(ctx.guild.id) + "_warnings"
print(ds_name)
cur.execute(f"""CREATE TABLE IF NOT EXISTS {ds_name}(
user_num INTEGER PRIMARY KEY AUTOINCREMENT,
user TEXT,
wcount INTEGER,
w1_id TEXT,
w1_reason TEXT,
w2_id TEXT,
w2_reason TEXT,
w3_id TEXT,
w3_reason TEXT);
""")
conn.commit()
username = str(user.name) + "#" + str(user.discriminator)
cur.execute(f"INSERT INTO {ds_name} (user) VALUES(?)", username, )
conn.commit()
cur.execute(f"INSERT INTO {ds_name} (user) VALUES(?)", (user, ))
Ignoring exception in command warn:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 172, in wrapped
ret = await coro(*args, **kwargs)
File "<string>", line 45, in warn
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/bot_base.py", line 578, in invoke
await ctx.command.invoke(ctx)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 914, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 181, in wrapped
raise CommandInvokeError(exc) from exc
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: InterfaceError: Error binding parameter 0 - probably unsupported type.
Ignoring exception in command warn:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 172, in wrapped
ret = await coro(*args, **kwargs)
File "<string>", line 45, in warn
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 2 supplied.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/bot_base.py", line 578, in invoke
await ctx.command.invoke(ctx)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 914, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 181, in wrapped
raise CommandInvokeError(exc) from exc
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 2 supplied.