From b0865354a3bcb8aaf5bb4385cba0abb4644188eb Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sun, 29 Sep 2024 00:28:59 +0900 Subject: [PATCH] =?UTF-8?q?PC=E3=81=AE=E3=83=8B=E3=83=83=E3=82=AF=E3=83=8D?= =?UTF-8?q?=E3=83=BC=E3=83=A0=E3=81=8C=E7=99=BB=E9=8C=B2=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_slash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dislocker_slash.py b/dislocker_slash.py index c0e53fa..82036a6 100644 --- a/dislocker_slash.py +++ b/dislocker_slash.py @@ -1585,7 +1585,7 @@ async def pcinfo(interaction: discord.Interaction): @discord.app_commands.default_permissions(administrator=True) async def pcnickname(interaction: discord.Interaction, pc_number: int, nickname: str): if interaction.guild_id in dislocker.server_config["bot"]["server_id"] or interaction.user.id in dislocker.server_config["bot"]["admin_user_id"]: - pc_nickname_set = dislocker.set_pc_nickname(pc_number=pc_number, nickname=nickname) + pc_nickname_set = dislocker.set_pc_nickname(pc_number=pc_number, alt_name=nickname) if pc_nickname_set["result"] == 0: result_embed = discord.Embed(title=":white_check_mark: 操作が完了しました。", description=f'PC番号 {str(pc_number)} のニックネームは {str(nickname)} に設定されました。', color=0x56FF01)