関数名間違えてたので修正

This commit is contained in:
suti7yk5032 2024-09-26 21:44:16 +09:00
parent 69cb9537ff
commit 6fae61351d

View file

@ -1316,7 +1316,7 @@ async def button_init(interaction: discord.Interaction, text_channel: discord.Te
@tree.command(name="masterpass", description="PCのマスターパスワードを表示します。") @tree.command(name="masterpass", description="PCのマスターパスワードを表示します。")
@discord.app_commands.default_permissions(administrator=True) @discord.app_commands.default_permissions(administrator=True)
async def masterpass(interaction: discord.Interaction, pc_number: int): async def masterpass(interaction: discord.Interaction, pc_number: int):
pc_master_password_get = dislocker.pc_master_password(pc_number=pc_number) pc_master_password_get = dislocker.show_pc_master_password(pc_number=pc_number)
if pc_master_password_get["result"] == 0: if pc_master_password_get["result"] == 0:
pc_master_password = pc_master_password_get["output_dict"]["master_password"] pc_master_password = pc_master_password_get["output_dict"]["master_password"]