A-0.1 - Modularer Aufbau #13

Merged
edraft merged 118 commits from 0.1 into Alpha 2021-11-25 21:02:12 +01:00
8 changed files with 38 additions and 3 deletions
Showing only changes of commit 3d56ef1dd5 - Show all commits

View File

@ -1,7 +1,12 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnGroupJoinABC(ABC): class OnGroupJoinABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_group_join(
self, chhanel: discord.GroupChannel, user: discord.User): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnGroupRemoveABC(ABC): class OnGroupRemoveABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_group_remove(
self, chhanel: discord.GroupChannel, user: discord.User): pass

View File

@ -1,7 +1,12 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnInviteCreateABC(ABC): class OnInviteCreateABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_invite_create(self, invite: discord.Invite): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnInviteDeleteABC(ABC): class OnInviteDeleteABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_invite_delete(self, invite: discord.Invite): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnMemberUnbanABC(ABC): class OnMemberUnbanABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_member_unban(self, guild: discord.Guild, user: discord.User): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnRelationshipAddABC(ABC): class OnRelationshipAddABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_relationship_add(self, relationship: discord.Relationship): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnRelationshipRemoveABC(ABC): class OnRelationshipRemoveABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_relationship_remove(self, relationship: discord.Relationship): pass

View File

@ -1,7 +1,12 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
class OnRelationshipUpdateABC(ABC): class OnRelationshipUpdateABC(ABC):
@abstractmethod @abstractmethod
def __init__(self): pass def __init__(self): pass
@abstractmethod
async def on_relationship_update(
self, before: discord.Relationship, after: discord.Relationship): pass