last code from server

This commit is contained in:
Alex D
2023-04-25 04:47:00 +03:00
parent cb8fb7d359
commit 5cca85686e
12 changed files with 31 additions and 24 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ class TicketsCommand(commands.Cog):
ticket_channel = None
@commands.slash_command(name="ticket")
@commands.slash_command(name="ticket", description="Создает тикет")
@commands.has_permissions(manage_channels=True)
async def ticket(self, ctx: disnake.AppCommandInteraction):
global ticket_channel
@@ -24,7 +24,7 @@ class TicketsCommand(commands.Cog):
except:
await ctx.send('Ошибка при создании канала. Пожалуйста, попробуйте позже.')
@commands.slash_command(name="close_ticket")
@commands.slash_command(name="close_ticket", description="Закрывает тикет")
@commands.has_permissions(manage_channels=True)
async def close_ticket(self, ctx: disnake.AppCommandInteraction):
global ticket_channel