initでボタンが送信できないバグを修正
This commit is contained in:
parent
4547e05700
commit
08a1178209
1 changed files with 1 additions and 1 deletions
|
@ -1595,7 +1595,7 @@ async def button_init(interaction: discord.Interaction, text_channel: discord.Te
|
||||||
else:
|
else:
|
||||||
pc_register_button = discord.ui.Button(style=discord.ButtonStyle.primary, label=f"{str(current_pc_list['pc_number'])} 番 | ({current_pc_list['alt_name']})", custom_id=f"pcregister_{str(current_pc_list['pc_number'])}")
|
pc_register_button = discord.ui.Button(style=discord.ButtonStyle.primary, label=f"{str(current_pc_list['pc_number'])} 番 | ({current_pc_list['alt_name']})", custom_id=f"pcregister_{str(current_pc_list['pc_number'])}")
|
||||||
|
|
||||||
pc_button_view.add_item(pc_register_button)
|
pc_button_view.add_item(pc_register_button)
|
||||||
|
|
||||||
await client.get_channel(text_channel.id).send(f'# :index_pointing_at_the_viewer: 使いたいPCの番号を選んでください!', view=pc_button_view)
|
await client.get_channel(text_channel.id).send(f'# :index_pointing_at_the_viewer: 使いたいPCの番号を選んでください!', view=pc_button_view)
|
||||||
dislocker.log(title=f"[INFO] サーバーで初回処理を実行しました。", flag=0)
|
dislocker.log(title=f"[INFO] サーバーで初回処理を実行しました。", flag=0)
|
||||||
|
|
Loading…
Reference in a new issue