A-0.1 - Modularer Aufbau #13

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

View File

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

View File

@ -1,7 +1,12 @@
from abc import ABC, abstractmethod
from typing import Sequence
import discord
class OnGuildEmojisUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_guild_emojis_update(self, guild: discord.Guild, before: Sequence[discord.Emoji], after: Sequence[discord.Emoji]): pass

View File

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

View File

@ -1,7 +1,10 @@
from abc import ABC, abstractmethod
import discord
class OnGuildRemoveABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_guild_remove(self, guild: discord.Guild): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnGuildRoleCreateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_guild_role_create(self, role: discord.Role): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnGuildRoleDeleteABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_guild_role_delete(self, role: discord.Role): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnGuildRoleUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_guild_role_update(self, before: discord.Role, after: discord.Role): pass

View File

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

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnGuildUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_guild_update(self, before: discord.Guild, after: discord.Guild): pass

View File

@ -8,5 +8,4 @@ class OnMemberBanABC(ABC):
def __init__(self): pass
@abstractmethod
async def on_member_ban(self, guild: discord.Guild,
user: discord.User): pass
async def on_member_ban(self, guild: discord.Guild, user: discord.User): pass

View File

@ -1,7 +1,12 @@
from abc import ABC, abstractmethod
import discord
class OnMemberJoinABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_member_join(self, member: discord.Member): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnMemberRemoveABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_member_remove(self, member: discord.Member): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnMemberUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_member_update(self, before: discord.Member, after: discord.Member): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnUserUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_user_update(self, before: discord.User, after: discord.User): pass

View File

@ -1,7 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnVoiceStateUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_voice_state_update(self, member: discord.Member, before: discord.VoiceState,after: discord.VoiceState): pass

View File

@ -1,7 +1,12 @@
from abc import ABC, abstractmethod
import discord
class OnWebhooksUpdateABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_webhooks_update(self, channel: discord.abc.GuildChannel): pass