Esempio n. 1
0
async def on_member_join(member):

    event = Map({})
    event.member = member

    await loader.execute(command=None,
                         cmdtype="MemberJoin",
                         event=event,
                         client=client)
Esempio n. 2
0
async def on_member_unban(member):

    event = Map({})
    event.member = member
    event.server = member.server

    await loader.execute(command=None,
                         cmdtype="MemberUnban",
                         event=event,
                         client=client)
Esempio n. 3
0
async def on_member_remove(member):

    event = Map({})
    event.member = member
    event.server = member.server

    await loader.execute(command=None,
                         cmdtype="MemberLeave",
                         event=event,
                         client=client)