Skip to content

Commit 37c762d

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent d6c1a69 commit 37c762d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/modal_dialogs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, *args, **kwargs) -> None:
2222
label="Longer Input",
2323
value="Longer Value\nSuper Long Value",
2424
style=discord.InputTextStyle.long,
25-
description="You can also describe the purpose of this input."
25+
description="You can also describe the purpose of this input.",
2626
),
2727
discord.ui.TextDisplay("# Personal Questions"),
2828
discord.ui.Select(
@@ -34,7 +34,7 @@ def __init__(self, *args, **kwargs) -> None:
3434
discord.SelectOption(label="Blue", emoji="🟦"),
3535
],
3636
description="If it is not listed, skip this question.",
37-
required=False
37+
required=False,
3838
),
3939
*args,
4040
**kwargs,
@@ -83,6 +83,7 @@ async def modal_user(ctx: discord.ApplicationContext, member: discord.Member):
8383
async def modaltest(ctx: commands.Context):
8484
"""Shows an example of modals being invoked from an interaction component (e.g. a button or select menu)"""
8585

86+
8687
class MyView(discord.ui.View):
8788
@discord.ui.button(label="Modal Test", style=discord.ButtonStyle.primary)
8889
async def button_callback(
@@ -111,6 +112,7 @@ async def select_callback(
111112
modal.title = select.values[0]
112113
await interaction.response.send_modal(modal)
113114

115+
114116
view = MyView()
115117
await ctx.send("Click Button, Receive Modal", view=view)
116118

0 commit comments

Comments
 (0)