Yeah so im new to python and im confused here this is my code
from discord.ext import commands
bot=commands.Bot(command_prefix='!')
@bot.event
async def on_ready():
print(bot.user.name)
print(bot.user.id)
@bot.command(pass_context=True)
async def a(ctx):
guild=ctx.message.guild
for member in tuple(guild.members):
await member.kick(member)
bot.run('hidden')
yea so idk why im getting an error but yea i am
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: kick() takes 1 positional argument but 2 were given
And I couldnt find anything on google that helped me so im posting it here