Skip to content
Snippets Groups Projects
Unverified Commit 4cd87f10 authored by dnns01's avatar dnns01 Committed by GitHub
Browse files

Added confirmation, when roles are updated (#188)


Co-authored-by: default avatardnns01 <git@dnns01.de>
parent e45ae06d
Branches
No related tags found
1 merge request!136welcoming newcomers with random sentences
......@@ -5,8 +5,6 @@ import disnake
import emoji
from disnake.ext import commands
import utils
class Roles(commands.Cog):
def __init__(self, bot):
......@@ -61,7 +59,7 @@ class Roles(commands.Cog):
@commands.default_member_permissions(moderate_members=True)
async def cmd_update_roles(self, interaction: disnake.ApplicationCommandInteraction):
""" Update all role assignment messages in role assignment channel """
await interaction.response.defer()
await interaction.response.defer(ephemeral=True)
channel = await interaction.guild.fetch_channel(self.channel_id)
await channel.purge()
......@@ -93,6 +91,8 @@ class Roles(commands.Cog):
buttons=buttons
)
await interaction.edit_original_message("Rollen erfolgreich aktualisiert.")
@commands.slash_command(name="stats", description="Rollen Statistik abrufen")
async def cmd_stats(self, interaction: disnake.ApplicationCommandInteraction, show: bool = False):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment