I have been trying to make my bot kick a member when I type the command ".kick @user" in Discord, I have referred to many YouTube videos, they have all pointed to the same code, however it doesn't work for me. So, how do I kick a member?
client = commands.Bot(command_prefix = ".") # To kick user @client.command() @commands.has_permissions(kick_members = True) async def kick(ctx, member : discord.Member = None, *, reason = None): await member.kick(reason = reason) https://stackoverflow.com/questions/67243780/why-doesnt-my-discord-bot-kick-command-work April 24, 2021 at 10:19PM
没有评论:
发表评论