Advertisement
Oxyoxoyxlyd

Untitled

Mar 26th, 2023
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. class clear:
  2.     @bot.slash_command(name = "clear", description="Clear messages")
  3.     async def clear(interaction: nextcord.Interaction, amount: int = SlashOption(name = " amount",description="Amount to clear"),* , user: nextcord.Member (description = "Members messages", required=False)):
  4.         if not interaction.user.guild_permissions.manage_messages:
  5.             await interaction.response.send_message ("You are not autorize to run this command, ask the staff!", ephemeral=True)
  6.         else:
  7.             pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement