From f5fc4d905f902b3ca4a993e6b75be0da1d3ab77a Mon Sep 17 00:00:00 2001 From: Endkind Date: Wed, 2 Jul 2025 11:55:35 +0200 Subject: [PATCH] update to ModuBotDiscord 0.3.1 --- commands/example.py | 8 ++++---- commands/ping.py | 2 +- requirements.txt | Bin 524 -> 524 bytes 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/example.py b/commands/example.py index 691eed6..8b05963 100644 --- a/commands/example.py +++ b/commands/example.py @@ -22,7 +22,7 @@ async def check_bot_permission_example(interaction: Interaction): await send_message( interaction, f"Bot has the Permission: `{PermissionEnum.ADMINISTRATOR}`", - True, + ephemeral=True, ) @bot.tree.command( @@ -34,7 +34,7 @@ async def check_bot_permission_multiple_example(interaction: Interaction): await send_message( interaction, f"Bot has the Permissions: `{PermissionEnum.KICK_MEMBERS}`, `{PermissionEnum.BAN_MEMBERS}`", - True, + ephemeral=True, ) @bot.tree.command( @@ -46,7 +46,7 @@ async def check_permission_example(interaction: Interaction): await send_message( interaction, f"You have the Permission: `{PermissionEnum.ADMINISTRATOR}`", - True, + ephemeral=True, ) @bot.tree.command( @@ -58,7 +58,7 @@ async def check_permission_multiple_example(interaction: Interaction): await send_message( interaction, f"You have the Permissions: `{PermissionEnum.KICK_MEMBERS}`, `{PermissionEnum.BAN_MEMBERS}`", - True, + ephemeral=True, ) @bot.tree.command( diff --git a/commands/ping.py b/commands/ping.py index b829d31..a9bcba2 100644 --- a/commands/ping.py +++ b/commands/ping.py @@ -7,4 +7,4 @@ class PingCommand(BaseCommand): async def register(self, bot: ModuBotDiscord): @bot.tree.command(name="ping", description="Responds with Pong!") async def ping(interaction: Interaction): - await send_message(interaction, "Pong!", True) + await send_message(interaction, "Pong!", ephemeral=True) diff --git a/requirements.txt b/requirements.txt index 0bc51c627983f6678306ecce18ed6e332a7fdff3..f6c23324711db42f686e122cf9e92d3be87b21f9 100644 GIT binary patch delta 15 WcmeBS>0#MW#5j2uBiG~_#t8r_30#MW#K>yIpvPb^xtwt-04T}?c>n+a