Added event bases
This commit is contained in:
parent
a79358725c
commit
8839b26f00
11
src/cpl_discord/events/on_bulk_message_delete_abc.py
Normal file
11
src/cpl_discord/events/on_bulk_message_delete_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnBulkMessageDeleteABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_bulk_message_delete(self, messages: list[discord.Message]): pass
|
10
src/cpl_discord/events/on_connect_abc.py
Normal file
10
src/cpl_discord/events/on_connect_abc.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
|
class OnConnectABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_connect(self): pass
|
10
src/cpl_discord/events/on_disconnect_abc.py
Normal file
10
src/cpl_discord/events/on_disconnect_abc.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
|
class OnDisconnectABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_disconnect(self): pass
|
10
src/cpl_discord/events/on_error_abc.py
Normal file
10
src/cpl_discord/events/on_error_abc.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
|
class OnErrorABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_error(self, event: str, *args, **kwargs): pass
|
12
src/cpl_discord/events/on_group_join_abc.py
Normal file
12
src/cpl_discord/events/on_group_join_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnGroupJoinABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_group_join(
|
||||||
|
self, chhanel: discord.GroupChannel, user: discord.User): pass
|
11
src/cpl_discord/events/on_group_remove_abc.py
Normal file
11
src/cpl_discord/events/on_group_remove_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
class OnGroupRemoveABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_group_remove(
|
||||||
|
self, chhanel: discord.GroupChannel, user: discord.User): pass
|
11
src/cpl_discord/events/on_guild_available_abc.py
Normal file
11
src/cpl_discord/events/on_guild_available_abc.py
Normal file
@ -0,0 +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
|
12
src/cpl_discord/events/on_guild_channel_create_abc.py
Normal file
12
src/cpl_discord/events/on_guild_channel_create_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnGuildChannelCreateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_guild_channel_create(self, channel: discord.abc.GuildChannel): pass
|
||||||
|
|
12
src/cpl_discord/events/on_guild_channel_delete_abc.py
Normal file
12
src/cpl_discord/events/on_guild_channel_delete_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnGuildChannelDeleteABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_guild_channel_delete(self, channel: discord.abc.GuildChannel): pass
|
||||||
|
|
14
src/cpl_discord/events/on_guild_channel_pins_update_abc.py
Normal file
14
src/cpl_discord/events/on_guild_channel_pins_update_abc.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
from datetime import datetime
|
||||||
|
from typing import Optional
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnGuildChannelPinsUpdateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_guild_channel_pins_update(self, channel: discord.abc.GuildChannel, list_pin: Optional[datetime]): pass
|
||||||
|
|
11
src/cpl_discord/events/on_guild_channel_update_abc.py
Normal file
11
src/cpl_discord/events/on_guild_channel_update_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnGuildChannelUpdateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_guild_channel_update(self, before: discord.abc.GuildChannel, after: discord.abc.GuildChannel): pass
|
12
src/cpl_discord/events/on_guild_emojis_update_abc.py
Normal file
12
src/cpl_discord/events/on_guild_emojis_update_abc.py
Normal file
@ -0,0 +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
|
12
src/cpl_discord/events/on_guild_integrations_update_abc.py
Normal file
12
src/cpl_discord/events/on_guild_integrations_update_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnGuildIntegrationsUpdateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_guild_integrations_update(self, guild: discord.Guild): pass
|
||||||
|
|
11
src/cpl_discord/events/on_guild_join_abc.py
Normal file
11
src/cpl_discord/events/on_guild_join_abc.py
Normal file
@ -0,0 +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
|
10
src/cpl_discord/events/on_guild_remove_abc.py
Normal file
10
src/cpl_discord/events/on_guild_remove_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_guild_role_create_abc.py
Normal file
11
src/cpl_discord/events/on_guild_role_create_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_guild_role_delete_abc.py
Normal file
11
src/cpl_discord/events/on_guild_role_delete_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_guild_role_update_abc.py
Normal file
11
src/cpl_discord/events/on_guild_role_update_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_guild_unavailable_abc.py
Normal file
11
src/cpl_discord/events/on_guild_unavailable_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_guild_update_abc.py
Normal file
11
src/cpl_discord/events/on_guild_update_abc.py
Normal file
@ -0,0 +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
|
12
src/cpl_discord/events/on_invite_create_abc.py
Normal file
12
src/cpl_discord/events/on_invite_create_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnInviteCreateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_invite_create(self, invite: discord.Invite): pass
|
||||||
|
|
11
src/cpl_discord/events/on_invite_delete_abc.py
Normal file
11
src/cpl_discord/events/on_invite_delete_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnInviteDeleteABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_invite_delete(self, invite: discord.Invite): pass
|
11
src/cpl_discord/events/on_member_ban_abc.py
Normal file
11
src/cpl_discord/events/on_member_ban_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnMemberBanABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_member_ban(self, guild: discord.Guild, user: discord.User): pass
|
11
src/cpl_discord/events/on_member_join_abc.py
Normal file
11
src/cpl_discord/events/on_member_join_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
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
|
11
src/cpl_discord/events/on_member_remove_abc.py
Normal file
11
src/cpl_discord/events/on_member_remove_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_member_unban_abc.py
Normal file
11
src/cpl_discord/events/on_member_unban_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnMemberUnbanABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_member_unban(self, guild: discord.Guild, user: discord.User): pass
|
11
src/cpl_discord/events/on_member_update_abc.py
Normal file
11
src/cpl_discord/events/on_member_update_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_message_abc.py
Normal file
11
src/cpl_discord/events/on_message_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnMessageABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_message(self, message: discord.Message): pass
|
11
src/cpl_discord/events/on_message_delete_abc.py
Normal file
11
src/cpl_discord/events/on_message_delete_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnMessageDeleteABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_message_delete(self, message: discord.Message): pass
|
11
src/cpl_discord/events/on_message_edit_abc.py
Normal file
11
src/cpl_discord/events/on_message_edit_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnMessageEditABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_message_edit(self, before: discord.Message, after: discord.Message): pass
|
12
src/cpl_discord/events/on_private_channel_create_abc.py
Normal file
12
src/cpl_discord/events/on_private_channel_create_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnPrivateChannelCreateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_private_channel_create(self, channel: discord.abc.PrivateChannel): pass
|
||||||
|
|
12
src/cpl_discord/events/on_private_channel_delete_abc.py
Normal file
12
src/cpl_discord/events/on_private_channel_delete_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnPrivateChannelDeleteABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_private_channel_delete(self, channel: discord.abc.PrivateChannel): pass
|
||||||
|
|
14
src/cpl_discord/events/on_private_channel_pins_update_abc.py
Normal file
14
src/cpl_discord/events/on_private_channel_pins_update_abc.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
from datetime import datetime
|
||||||
|
from typing import Optional
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnPrivateChannelPinsUpdateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_private_channel_pins_update(self, channel: discord.abc.PrivateChannel, list_pin: Optional[datetime]): pass
|
||||||
|
|
12
src/cpl_discord/events/on_private_channel_update_abc.py
Normal file
12
src/cpl_discord/events/on_private_channel_update_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnPrivateChannelUpdateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_private_channel_update(self, before: discord.GroupChannel, after: discord.GroupChannel): pass
|
||||||
|
|
12
src/cpl_discord/events/on_reaction_add_abc.py
Normal file
12
src/cpl_discord/events/on_reaction_add_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnReactionAddABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_reaction_add(self, reaction: discord.Reaction, user: discord.User): pass
|
||||||
|
|
12
src/cpl_discord/events/on_reaction_clear_abc.py
Normal file
12
src/cpl_discord/events/on_reaction_clear_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnReactionClearABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_reaction_clear(self, message: discord.Message, reactions: list[discord.Reaction]): pass
|
||||||
|
|
12
src/cpl_discord/events/on_reaction_clear_emoji_abc.py
Normal file
12
src/cpl_discord/events/on_reaction_clear_emoji_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnReactionClearEmojiABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_reaction_clear_emoji(self, reaction: discord.Reaction): pass
|
||||||
|
|
12
src/cpl_discord/events/on_reaction_remove_abc.py
Normal file
12
src/cpl_discord/events/on_reaction_remove_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnReactionRemoveABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_reaction_remove(self, reaction: discord.Reaction, user: discord.User): pass
|
||||||
|
|
10
src/cpl_discord/events/on_ready_abc.py
Normal file
10
src/cpl_discord/events/on_ready_abc.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
|
class OnReadyABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_ready(self): pass
|
11
src/cpl_discord/events/on_relationship_add_abc.py
Normal file
11
src/cpl_discord/events/on_relationship_add_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
class OnRelationshipAddABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_relationship_add(self, relationship: discord.Relationship): pass
|
||||||
|
|
11
src/cpl_discord/events/on_relationship_remove_abc.py
Normal file
11
src/cpl_discord/events/on_relationship_remove_abc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnRelationshipRemoveABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_relationship_remove(self, relationship: discord.Relationship): pass
|
12
src/cpl_discord/events/on_relationship_update_abc.py
Normal file
12
src/cpl_discord/events/on_relationship_update_abc.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnRelationshipUpdateABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_relationship_update(
|
||||||
|
self, before: discord.Relationship, after: discord.Relationship): pass
|
10
src/cpl_discord/events/on_resume_abc.py
Normal file
10
src/cpl_discord/events/on_resume_abc.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
|
class OnResumeABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_resume(self): pass
|
13
src/cpl_discord/events/on_typing_abc.py
Normal file
13
src/cpl_discord/events/on_typing_abc.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from abc import ABC, abstractmethod
|
||||||
|
from datetime import datetime
|
||||||
|
from typing import Union
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
|
class OnTypingABC(ABC):
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def __init__(self): pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
async def on_typing(self, channel: discord.abc.Messageable, user: Union[discord.User, discord.Member], when: datetime): pass
|
11
src/cpl_discord/events/on_user_update_abc.py
Normal file
11
src/cpl_discord/events/on_user_update_abc.py
Normal file
@ -0,0 +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
|
11
src/cpl_discord/events/on_voice_state_update_abc.py
Normal file
11
src/cpl_discord/events/on_voice_state_update_abc.py
Normal file
@ -0,0 +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
|
12
src/cpl_discord/events/on_webhooks_update_abc.py
Normal file
12
src/cpl_discord/events/on_webhooks_update_abc.py
Normal file
@ -0,0 +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
|
Loading…
Reference in New Issue
Block a user