Browse Source

deleteing the confirmation msg after 3s.

BaumSplitter41 1 tuần trước cách đây
mục cha
commit
b8ffa93241
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      VPD_BOT/cogs/reaction_roles.py

+ 2 - 2
VPD_BOT/cogs/reaction_roles.py

@@ -148,7 +148,7 @@ class Reactionroles(commands.Cog):
                             if channel is not None:
                                 await channel.send(
                                     f"{member.mention}, you received the **{role.name}** role.",
-                                    delete_after=5
+                                    delete_after=3
                                 )
                         except Exception as e:
                             print(f"Failed to send confirmation message for {member.name}: {e}")
@@ -166,7 +166,7 @@ class Reactionroles(commands.Cog):
                             if channel is not None:
                                 await channel.send(
                                     f"{member.mention}, you removed the **{role.name}** role.",
-                                    delete_after=5
+                                    delete_after=3
                                 )
                         except Exception as e:
                             print(f"Failed to send confirmation message for {member.name}: {e}")