diff --git a/src/cpl_discord/events/on_bulk_message_delete_abc.py b/src/cpl_discord/events/on_bulk_message_delete_abc.py new file mode 100644 index 00000000..15a19c64 --- /dev/null +++ b/src/cpl_discord/events/on_bulk_message_delete_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_connect_abc.py b/src/cpl_discord/events/on_connect_abc.py new file mode 100644 index 00000000..96d1909b --- /dev/null +++ b/src/cpl_discord/events/on_connect_abc.py @@ -0,0 +1,10 @@ +from abc import ABC, abstractmethod + + +class OnConnectABC(ABC): + + @abstractmethod + def __init__(self): pass + + @abstractmethod + async def on_connect(self): pass diff --git a/src/cpl_discord/events/on_disconnect_abc.py b/src/cpl_discord/events/on_disconnect_abc.py new file mode 100644 index 00000000..eb3be9a6 --- /dev/null +++ b/src/cpl_discord/events/on_disconnect_abc.py @@ -0,0 +1,10 @@ +from abc import ABC, abstractmethod + + +class OnDisconnectABC(ABC): + + @abstractmethod + def __init__(self): pass + + @abstractmethod + async def on_disconnect(self): pass \ No newline at end of file diff --git a/src/cpl_discord/events/on_error_abc.py b/src/cpl_discord/events/on_error_abc.py new file mode 100644 index 00000000..ff4badbb --- /dev/null +++ b/src/cpl_discord/events/on_error_abc.py @@ -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 \ No newline at end of file diff --git a/src/cpl_discord/events/on_group_join_abc.py b/src/cpl_discord/events/on_group_join_abc.py new file mode 100644 index 00000000..e0b3aaaf --- /dev/null +++ b/src/cpl_discord/events/on_group_join_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_group_remove_abc.py b/src/cpl_discord/events/on_group_remove_abc.py new file mode 100644 index 00000000..dc6fda84 --- /dev/null +++ b/src/cpl_discord/events/on_group_remove_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_available_abc.py b/src/cpl_discord/events/on_guild_available_abc.py new file mode 100644 index 00000000..8b6eaa91 --- /dev/null +++ b/src/cpl_discord/events/on_guild_available_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_channel_create_abc.py b/src/cpl_discord/events/on_guild_channel_create_abc.py new file mode 100644 index 00000000..3d367771 --- /dev/null +++ b/src/cpl_discord/events/on_guild_channel_create_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_guild_channel_delete_abc.py b/src/cpl_discord/events/on_guild_channel_delete_abc.py new file mode 100644 index 00000000..c34e7f11 --- /dev/null +++ b/src/cpl_discord/events/on_guild_channel_delete_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_guild_channel_pins_update_abc.py b/src/cpl_discord/events/on_guild_channel_pins_update_abc.py new file mode 100644 index 00000000..3408e547 --- /dev/null +++ b/src/cpl_discord/events/on_guild_channel_pins_update_abc.py @@ -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 + diff --git a/src/cpl_discord/events/on_guild_channel_update_abc.py b/src/cpl_discord/events/on_guild_channel_update_abc.py new file mode 100644 index 00000000..17a86340 --- /dev/null +++ b/src/cpl_discord/events/on_guild_channel_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_emojis_update_abc.py b/src/cpl_discord/events/on_guild_emojis_update_abc.py new file mode 100644 index 00000000..40a32475 --- /dev/null +++ b/src/cpl_discord/events/on_guild_emojis_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_integrations_update_abc.py b/src/cpl_discord/events/on_guild_integrations_update_abc.py new file mode 100644 index 00000000..9e5f4f07 --- /dev/null +++ b/src/cpl_discord/events/on_guild_integrations_update_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_guild_join_abc.py b/src/cpl_discord/events/on_guild_join_abc.py new file mode 100644 index 00000000..c6e82f1f --- /dev/null +++ b/src/cpl_discord/events/on_guild_join_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_remove_abc.py b/src/cpl_discord/events/on_guild_remove_abc.py new file mode 100644 index 00000000..04f0e34b --- /dev/null +++ b/src/cpl_discord/events/on_guild_remove_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_role_create_abc.py b/src/cpl_discord/events/on_guild_role_create_abc.py new file mode 100644 index 00000000..f828988b --- /dev/null +++ b/src/cpl_discord/events/on_guild_role_create_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_role_delete_abc.py b/src/cpl_discord/events/on_guild_role_delete_abc.py new file mode 100644 index 00000000..a26bdd25 --- /dev/null +++ b/src/cpl_discord/events/on_guild_role_delete_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_role_update_abc.py b/src/cpl_discord/events/on_guild_role_update_abc.py new file mode 100644 index 00000000..905efb50 --- /dev/null +++ b/src/cpl_discord/events/on_guild_role_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_unavailable_abc.py b/src/cpl_discord/events/on_guild_unavailable_abc.py new file mode 100644 index 00000000..5666407e --- /dev/null +++ b/src/cpl_discord/events/on_guild_unavailable_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_guild_update_abc.py b/src/cpl_discord/events/on_guild_update_abc.py new file mode 100644 index 00000000..7ed4c1ad --- /dev/null +++ b/src/cpl_discord/events/on_guild_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_invite_create_abc.py b/src/cpl_discord/events/on_invite_create_abc.py new file mode 100644 index 00000000..ce4e2e0b --- /dev/null +++ b/src/cpl_discord/events/on_invite_create_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_invite_delete_abc.py b/src/cpl_discord/events/on_invite_delete_abc.py new file mode 100644 index 00000000..bbd848cd --- /dev/null +++ b/src/cpl_discord/events/on_invite_delete_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_member_ban_abc.py b/src/cpl_discord/events/on_member_ban_abc.py new file mode 100644 index 00000000..45e3f0db --- /dev/null +++ b/src/cpl_discord/events/on_member_ban_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_member_join_abc.py b/src/cpl_discord/events/on_member_join_abc.py new file mode 100644 index 00000000..599f1783 --- /dev/null +++ b/src/cpl_discord/events/on_member_join_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_member_remove_abc.py b/src/cpl_discord/events/on_member_remove_abc.py new file mode 100644 index 00000000..b24f3d5f --- /dev/null +++ b/src/cpl_discord/events/on_member_remove_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_member_unban_abc.py b/src/cpl_discord/events/on_member_unban_abc.py new file mode 100644 index 00000000..c5bbb8c7 --- /dev/null +++ b/src/cpl_discord/events/on_member_unban_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_member_update_abc.py b/src/cpl_discord/events/on_member_update_abc.py new file mode 100644 index 00000000..6ca11dff --- /dev/null +++ b/src/cpl_discord/events/on_member_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_message_abc.py b/src/cpl_discord/events/on_message_abc.py new file mode 100644 index 00000000..08e38165 --- /dev/null +++ b/src/cpl_discord/events/on_message_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_message_delete_abc.py b/src/cpl_discord/events/on_message_delete_abc.py new file mode 100644 index 00000000..57cf30e8 --- /dev/null +++ b/src/cpl_discord/events/on_message_delete_abc.py @@ -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 \ No newline at end of file diff --git a/src/cpl_discord/events/on_message_edit_abc.py b/src/cpl_discord/events/on_message_edit_abc.py new file mode 100644 index 00000000..b8d4df8a --- /dev/null +++ b/src/cpl_discord/events/on_message_edit_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_private_channel_create_abc.py b/src/cpl_discord/events/on_private_channel_create_abc.py new file mode 100644 index 00000000..371ccaf6 --- /dev/null +++ b/src/cpl_discord/events/on_private_channel_create_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_private_channel_delete_abc.py b/src/cpl_discord/events/on_private_channel_delete_abc.py new file mode 100644 index 00000000..0e6f775f --- /dev/null +++ b/src/cpl_discord/events/on_private_channel_delete_abc.py @@ -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 + diff --git a/src/cpl_discord/events/on_private_channel_pins_update_abc.py b/src/cpl_discord/events/on_private_channel_pins_update_abc.py new file mode 100644 index 00000000..4634b878 --- /dev/null +++ b/src/cpl_discord/events/on_private_channel_pins_update_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_private_channel_update_abc.py b/src/cpl_discord/events/on_private_channel_update_abc.py new file mode 100644 index 00000000..6c37031c --- /dev/null +++ b/src/cpl_discord/events/on_private_channel_update_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_reaction_add_abc.py b/src/cpl_discord/events/on_reaction_add_abc.py new file mode 100644 index 00000000..c1682227 --- /dev/null +++ b/src/cpl_discord/events/on_reaction_add_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_reaction_clear_abc.py b/src/cpl_discord/events/on_reaction_clear_abc.py new file mode 100644 index 00000000..7d2ef669 --- /dev/null +++ b/src/cpl_discord/events/on_reaction_clear_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_reaction_clear_emoji_abc.py b/src/cpl_discord/events/on_reaction_clear_emoji_abc.py new file mode 100644 index 00000000..1e683eb3 --- /dev/null +++ b/src/cpl_discord/events/on_reaction_clear_emoji_abc.py @@ -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 + diff --git a/src/cpl_discord/events/on_reaction_remove_abc.py b/src/cpl_discord/events/on_reaction_remove_abc.py new file mode 100644 index 00000000..6dc34d15 --- /dev/null +++ b/src/cpl_discord/events/on_reaction_remove_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_ready_abc.py b/src/cpl_discord/events/on_ready_abc.py new file mode 100644 index 00000000..053bf799 --- /dev/null +++ b/src/cpl_discord/events/on_ready_abc.py @@ -0,0 +1,10 @@ +from abc import ABC, abstractmethod + + +class OnReadyABC(ABC): + + @abstractmethod + def __init__(self): pass + + @abstractmethod + async def on_ready(self): pass diff --git a/src/cpl_discord/events/on_relationship_add_abc.py b/src/cpl_discord/events/on_relationship_add_abc.py new file mode 100644 index 00000000..5cba49a0 --- /dev/null +++ b/src/cpl_discord/events/on_relationship_add_abc.py @@ -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 + \ No newline at end of file diff --git a/src/cpl_discord/events/on_relationship_remove_abc.py b/src/cpl_discord/events/on_relationship_remove_abc.py new file mode 100644 index 00000000..4c8907ec --- /dev/null +++ b/src/cpl_discord/events/on_relationship_remove_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_relationship_update_abc.py b/src/cpl_discord/events/on_relationship_update_abc.py new file mode 100644 index 00000000..4d970914 --- /dev/null +++ b/src/cpl_discord/events/on_relationship_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_resume_abc.py b/src/cpl_discord/events/on_resume_abc.py new file mode 100644 index 00000000..28e63f95 --- /dev/null +++ b/src/cpl_discord/events/on_resume_abc.py @@ -0,0 +1,10 @@ +from abc import ABC, abstractmethod + + +class OnResumeABC(ABC): + + @abstractmethod + def __init__(self): pass + + @abstractmethod + async def on_resume(self): pass \ No newline at end of file diff --git a/src/cpl_discord/events/on_typing_abc.py b/src/cpl_discord/events/on_typing_abc.py new file mode 100644 index 00000000..76b89a08 --- /dev/null +++ b/src/cpl_discord/events/on_typing_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_user_update_abc.py b/src/cpl_discord/events/on_user_update_abc.py new file mode 100644 index 00000000..0a9b7c9a --- /dev/null +++ b/src/cpl_discord/events/on_user_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_voice_state_update_abc.py b/src/cpl_discord/events/on_voice_state_update_abc.py new file mode 100644 index 00000000..60d586f8 --- /dev/null +++ b/src/cpl_discord/events/on_voice_state_update_abc.py @@ -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 diff --git a/src/cpl_discord/events/on_webhooks_update_abc.py b/src/cpl_discord/events/on_webhooks_update_abc.py new file mode 100644 index 00000000..db92f583 --- /dev/null +++ b/src/cpl_discord/events/on_webhooks_update_abc.py @@ -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