Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class clear:
- @bot.slash_command(name = "clear", description="Clear messages")
- async def clear(interaction: nextcord.Interaction, amount: int = SlashOption(name = " amount",description="Amount to clear"),* , user: nextcord.Member (description = "Members messages", required=False)):
- if not interaction.user.guild_permissions.manage_messages:
- await interaction.response.send_message ("You are not autorize to run this command, ask the staff!", ephemeral=True)
- else:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement