mirror of
https://github.com/dizedev/Main-tech.git
synced 2026-09-16 21:58:48 +00:00
super edit thay mama
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@ class BanCommands(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.slash_command(description="Изгоняет указанного участника с сервера навсегда.")
|
||||
@commands.slash_command(name="ban", description="Изгоняет указанного участника с сервера навсегда.")
|
||||
async def ban(self, ctx: disnake.AppCommandInteraction, member: disnake.Member, *, reason=None):
|
||||
if disnake.utils.get(ctx.author.roles, id=1060542125621649458):
|
||||
await member.ban(reason=reason)
|
||||
@@ -15,8 +15,8 @@ class BanCommands(commands.Cog):
|
||||
await ctx.send(f'{ctx.author.mention}, у вас нет роли <@&1060542125621649458>.')
|
||||
|
||||
@commands.has_any_role(1060542125621649458)
|
||||
@commands.slash_command()
|
||||
async def unban(ctx: disnake.AppCommandInteraction, *, user: disnake.User):
|
||||
@commands.slash_command(name="unban")
|
||||
async def unban(self, ctx: disnake.AppCommandInteraction, *, user: disnake.User):
|
||||
if disnake.utils.get(ctx.author.roles, id=1060542125621649458):
|
||||
await ctx.guild.unban(user)
|
||||
if (user.name, user.discriminator) == (user.name, user.discriminator):
|
||||
|
||||
Reference in New Issue
Block a user