From 67696bc63c9afb7778f3fe254b57050e142c869b Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 18:57:55 +0100 Subject: [PATCH 01/16] Added on_webhooks_update event abc --- src/modules_core/abc/events/on_webhooks_update_abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules_core/abc/events/on_webhooks_update_abc.py b/src/modules_core/abc/events/on_webhooks_update_abc.py index 90f1e0e..db92f58 100644 --- a/src/modules_core/abc/events/on_webhooks_update_abc.py +++ b/src/modules_core/abc/events/on_webhooks_update_abc.py @@ -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 From e83982fc2a245915ec95ba6e079fe4eb22d87be4 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 18:58:35 +0100 Subject: [PATCH 02/16] Added on_member_join event abc --- src/modules_core/abc/events/on_member_join_abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules_core/abc/events/on_member_join_abc.py b/src/modules_core/abc/events/on_member_join_abc.py index 6d45f7a..51036e5 100644 --- a/src/modules_core/abc/events/on_member_join_abc.py +++ b/src/modules_core/abc/events/on_member_join_abc.py @@ -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 From aeef7ed477b068ccc2ee865460cedbf8bfd7dd6c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 18:59:02 +0100 Subject: [PATCH 03/16] Added on_member_remove event abc --- src/modules_core/abc/events/on_member_remove_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_member_remove_abc.py b/src/modules_core/abc/events/on_member_remove_abc.py index 354f0d4..b24f3d5 100644 --- a/src/modules_core/abc/events/on_member_remove_abc.py +++ b/src/modules_core/abc/events/on_member_remove_abc.py @@ -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 From 2c7755310d0c0e8ed04680116fb65ef0b17287ce Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 18:59:35 +0100 Subject: [PATCH 04/16] Added on_member_update event abc --- src/modules_core/abc/events/on_member_update_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_member_update_abc.py b/src/modules_core/abc/events/on_member_update_abc.py index fc71ec5..6ca11df 100644 --- a/src/modules_core/abc/events/on_member_update_abc.py +++ b/src/modules_core/abc/events/on_member_update_abc.py @@ -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 From d1740edda0e4dc8dd2a783a6c13195d083790333 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:00:04 +0100 Subject: [PATCH 05/16] Added on_user_update event abc --- src/modules_core/abc/events/on_user_update_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_user_update_abc.py b/src/modules_core/abc/events/on_user_update_abc.py index cda96d4..0a9b7c9 100644 --- a/src/modules_core/abc/events/on_user_update_abc.py +++ b/src/modules_core/abc/events/on_user_update_abc.py @@ -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 From 14d543a5877207d269efd2741c7e08ce3822179e Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:00:35 +0100 Subject: [PATCH 06/16] Added on_guild_join event abc --- src/modules_core/abc/events/on_guild_join_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_join_abc.py b/src/modules_core/abc/events/on_guild_join_abc.py index b979ec5..c6e82f1 100644 --- a/src/modules_core/abc/events/on_guild_join_abc.py +++ b/src/modules_core/abc/events/on_guild_join_abc.py @@ -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 From 4176db9f9172d12a131453883bca2750b728b0bd Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:01:20 +0100 Subject: [PATCH 07/16] Added on_guild_remove event abc --- src/modules_core/abc/events/on_guild_remove_abc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_remove_abc.py b/src/modules_core/abc/events/on_guild_remove_abc.py index 770304e..04f0e34 100644 --- a/src/modules_core/abc/events/on_guild_remove_abc.py +++ b/src/modules_core/abc/events/on_guild_remove_abc.py @@ -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 From b0c75fa651615622a7c70ecfba921fd96164db52 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:01:57 +0100 Subject: [PATCH 08/16] Added on_guild_update event abc --- src/modules_core/abc/events/on_guild_update_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_update_abc.py b/src/modules_core/abc/events/on_guild_update_abc.py index 5071094..7ed4c1a 100644 --- a/src/modules_core/abc/events/on_guild_update_abc.py +++ b/src/modules_core/abc/events/on_guild_update_abc.py @@ -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 From 4d69250342b58a1a9906126f7b009c245f91d6df Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:02:27 +0100 Subject: [PATCH 09/16] Added on_guild_role_create event abc --- src/modules_core/abc/events/on_guild_role_create_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_role_create_abc.py b/src/modules_core/abc/events/on_guild_role_create_abc.py index 9a54e26..f828988 100644 --- a/src/modules_core/abc/events/on_guild_role_create_abc.py +++ b/src/modules_core/abc/events/on_guild_role_create_abc.py @@ -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 From 463456711d573141f839b07e320eb4b0c476ce89 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:03:02 +0100 Subject: [PATCH 10/16] Added on_guild_role_delete event abc --- src/modules_core/abc/events/on_guild_role_delete_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_role_delete_abc.py b/src/modules_core/abc/events/on_guild_role_delete_abc.py index 844223b..a26bdd2 100644 --- a/src/modules_core/abc/events/on_guild_role_delete_abc.py +++ b/src/modules_core/abc/events/on_guild_role_delete_abc.py @@ -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 From a2e52e473c6e61da8fd0bcbdc121e694af8f02cd Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:03:31 +0100 Subject: [PATCH 11/16] Added on_guild_role_update event abc --- src/modules_core/abc/events/on_guild_role_update_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_role_update_abc.py b/src/modules_core/abc/events/on_guild_role_update_abc.py index d5678ac..905efb5 100644 --- a/src/modules_core/abc/events/on_guild_role_update_abc.py +++ b/src/modules_core/abc/events/on_guild_role_update_abc.py @@ -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 From 9cbc589d627a025957294baf0cf551be249ea280 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:04:21 +0100 Subject: [PATCH 12/16] Added on_guild_emojis_update event abc --- src/modules_core/abc/events/on_guild_emojis_update_abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_emojis_update_abc.py b/src/modules_core/abc/events/on_guild_emojis_update_abc.py index fe716ac..40a3247 100644 --- a/src/modules_core/abc/events/on_guild_emojis_update_abc.py +++ b/src/modules_core/abc/events/on_guild_emojis_update_abc.py @@ -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 From 3fc3b9548a7b3713da58b192c1d869b129b5c841 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:04:53 +0100 Subject: [PATCH 13/16] Added on_guild_available event abc --- src/modules_core/abc/events/on_guild_available_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_available_abc.py b/src/modules_core/abc/events/on_guild_available_abc.py index 35ef0d8..8b6eaa9 100644 --- a/src/modules_core/abc/events/on_guild_available_abc.py +++ b/src/modules_core/abc/events/on_guild_available_abc.py @@ -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 From 3b4b81eba0c6575d70a6f7d255ab692701387427 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:05:23 +0100 Subject: [PATCH 14/16] Added on_guild_unavailable event abc --- src/modules_core/abc/events/on_guild_unavailable_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_guild_unavailable_abc.py b/src/modules_core/abc/events/on_guild_unavailable_abc.py index 0064fdf..5666407 100644 --- a/src/modules_core/abc/events/on_guild_unavailable_abc.py +++ b/src/modules_core/abc/events/on_guild_unavailable_abc.py @@ -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 From f033eeaf87e468f07922106c574d5a081d1379c7 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:05:50 +0100 Subject: [PATCH 15/16] Added on_voice_state_update event abc --- src/modules_core/abc/events/on_voice_state_update_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_voice_state_update_abc.py b/src/modules_core/abc/events/on_voice_state_update_abc.py index 266f962..60d586f 100644 --- a/src/modules_core/abc/events/on_voice_state_update_abc.py +++ b/src/modules_core/abc/events/on_voice_state_update_abc.py @@ -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 From 7780b43e11362113918c18943dde2d7b261fcf42 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 19:06:45 +0100 Subject: [PATCH 16/16] Removed line break --- src/modules_core/abc/events/on_member_ban_abc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules_core/abc/events/on_member_ban_abc.py b/src/modules_core/abc/events/on_member_ban_abc.py index 4410fad..45e3f0d 100644 --- a/src/modules_core/abc/events/on_member_ban_abc.py +++ b/src/modules_core/abc/events/on_member_ban_abc.py @@ -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