<filename>app/events/client/commands/kickAll.py
from discord.ext import commands
from app.vars.client import client
from app.helpers import Notify
from app.filesystem import ignore, error

@client.command()
@commands.guild_only()
@commands.has_permissions(kick_members=True)
async def kickAll(ctx):
    notify = Notify(ctx=ctx, title='Kicking All Members...')
    notify.prepair()

    if str(ctx.guild.id) in ignore.getIgnore():
        notify.error(content='The server {} is being ignored'.format(ctx.guild.name))
        return

    for member in ctx.guild.members:
        if member.id != ctx.author.id:
            try:
                await member.kick() 
            except Exception as e:
                error(e)
                pass
    else:
        notify.success(content=f'All members successfully kicked')

<filename>app/events/client/commands/kickAll.py
from discord.ext import commands
from app.vars.client import client
from app.helpers import Notify
from app.filesystem import ignore, error

@client.command()
@commands.guild_only()
@commands.has_permissions(kick_members=True)
async def kickAll(ctx):
    notify = Notify(ctx=ctx, title='Kicking All Members...')
    notify.prepair()

    if str(ctx.guild.id) in ignore.getIgnore():
        notify.error(content='The server {} is being ignored'.format(ctx.guild.name))
        return

    for member in ctx.guild.members:
        if member.id != ctx.author.id:
            try:
                await member.kick() 
            except Exception as e:
                error(e)
                pass
    else:
        notify.success(content=f'All members successfully kicked')
