Пример #1
0
async def on_server_update(post, pre):
    event = Map({})
    event.old = post
    event.new = pre

    await loader.execute(command=None,
                         cmdtype="ServerChange",
                         event=event,
                         client=client)
Пример #2
0
async def on_member_update(pre, post):

    event = Map({})
    event.old = pre
    event.new = post
    event.server = pre.server

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