user_idをdiscord_user_idに全面的に改める

This commit is contained in:
suti7yk5032 2024-08-23 02:33:17 +09:00
parent d433f38d94
commit 2ddcc6626a

View file

@ -297,7 +297,7 @@ class Bot(discord.Client):
try: try:
cursor = dislocker.db.cursor() cursor = dislocker.db.cursor()
user_info = { user_info = {
"id": str(kwargs["user_id"]), "id": str(kwargs["discord_user_id"]),
"name": str(kwargs["name"]), "name": str(kwargs["name"]),
"display_name": str(kwargs["display_name"]), "display_name": str(kwargs["display_name"]),
"pc_number": int(kwargs["pc_number"]), "pc_number": int(kwargs["pc_number"]),
@ -898,7 +898,7 @@ class Bot(discord.Client):
elif custom_id_split[0] == "stop": elif custom_id_split[0] == "stop":
print("STOP running") print("STOP running")
pc_stop = self.stop(user_id=interaction.user.id) pc_stop = self.stop(discord_user_id=interaction.user.id)
print(pc_stop) print(pc_stop)
stop_view = View(timeout=15) stop_view = View(timeout=15)
if pc_stop["about"] == "unused": if pc_stop["about"] == "unused":
@ -1044,7 +1044,7 @@ class Reason(Modal):
else: else:
mouse_number_show = mouse_number mouse_number_show = mouse_number
register = bot.register(user_id=interaction.user.id, name=interaction.user.name, display_name=interaction.user.display_name, pc_number=pc_number, keyboard_number=keyboard_number, mouse_number=mouse_number, detail=self.reason_input_form.value) register = bot.register(discord_user_id=interaction.user.id, name=interaction.user.name, display_name=interaction.user.display_name, pc_number=pc_number, keyboard_number=keyboard_number, mouse_number=mouse_number, detail=self.reason_input_form.value)
print(register) print(register)
if register["about"] == "ok": if register["about"] == "ok":