Skip to content

Commit 976d8d7

Browse files
committed
Add slightly less lazy error message for config reset commands
1 parent c10027c commit 976d8d7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bot/src/ghutils/cogs/app_commands/config/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ async def reset(
6565
session.add(config)
6666
session.commit()
6767

68-
await interaction.response.send_message("ok", ephemeral=True)
68+
await interaction.response.send_message(
69+
"Reset all config options to their default values.",
70+
ephemeral=True,
71+
)
6972

7073
class Set(SubGroup):
7174
"""Change the value of config options for this server."""

bot/src/ghutils/cogs/app_commands/config/user.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ async def reset(
7878
session.add(config)
7979
session.commit()
8080

81-
await interaction.response.send_message("ok", ephemeral=True)
81+
await interaction.response.send_message(
82+
"Reset all config options to their default values.",
83+
ephemeral=True,
84+
)
8285

8386
class Set(SubGroup):
8487
"""Change the value of config options for your account."""

0 commit comments

Comments
 (0)