Periksa apakah pengguna telah mengelola pesan scord.py
@client.event
async def on_message(message):
message.author.guild_permissions.manage_messages # returns bool
evan
@client.event
async def on_message(message):
message.author.guild_permissions.manage_messages # returns bool
@bot.command()
@has_permissions(kick_members=True)
async def kick(self, ctx, Member: discord.Member):
await bot.kick(Member)
@kick.error
async def kick_error(error, ctx):
if isinstance(error, MissingPermissions):
await ctx.send("You don't have permission to do that!")