PCのニックネームが登録できないバグを修正

This commit is contained in:
suti7yk5032 2024-09-29 00:28:59 +09:00
parent dfb21e3a25
commit b0865354a3

View file

@ -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)