From d99cec79b9d70c75a4af709ce715a039eed1d7f9 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:24:12 +0100 Subject: [PATCH 1/8] Added on_relationship_update event abc --- src/modules_core/abc/events/on_relationship_update_abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules_core/abc/events/on_relationship_update_abc.py b/src/modules_core/abc/events/on_relationship_update_abc.py index b631d7d..4d97091 100644 --- a/src/modules_core/abc/events/on_relationship_update_abc.py +++ b/src/modules_core/abc/events/on_relationship_update_abc.py @@ -1,7 +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 From 0730c5f91539c82068867846ad664a313b51296d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:35:56 +0100 Subject: [PATCH 2/8] Added on_relationship_remove event abc --- src/modules_core/abc/events/on_relationship_remove_abc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules_core/abc/events/on_relationship_remove_abc.py b/src/modules_core/abc/events/on_relationship_remove_abc.py index d77db3c..c842a4a 100644 --- a/src/modules_core/abc/events/on_relationship_remove_abc.py +++ b/src/modules_core/abc/events/on_relationship_remove_abc.py @@ -1,7 +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 + \ No newline at end of file From 89c31c63929bb6e44647b6661d50bcbca88bf2e6 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:36:22 +0100 Subject: [PATCH 3/8] Added on_relationship_add event abc --- src/modules_core/abc/events/on_relationship_add_abc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules_core/abc/events/on_relationship_add_abc.py b/src/modules_core/abc/events/on_relationship_add_abc.py index cfaa454..5cba49a 100644 --- a/src/modules_core/abc/events/on_relationship_add_abc.py +++ b/src/modules_core/abc/events/on_relationship_add_abc.py @@ -1,7 +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 From 31682f2b83212f164818c7011e380737bfa6e733 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:38:23 +0100 Subject: [PATCH 4/8] Added on_group_remove event abc --- src/modules_core/abc/events/on_group_remove_abc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules_core/abc/events/on_group_remove_abc.py b/src/modules_core/abc/events/on_group_remove_abc.py index b4dd22b..dc6fda8 100644 --- a/src/modules_core/abc/events/on_group_remove_abc.py +++ b/src/modules_core/abc/events/on_group_remove_abc.py @@ -1,7 +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 From 49ec7ea9319220703ff01e7bbdbdd2332df2f59d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:39:15 +0100 Subject: [PATCH 5/8] Added on_group_join event abc --- src/modules_core/abc/events/on_group_join_abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules_core/abc/events/on_group_join_abc.py b/src/modules_core/abc/events/on_group_join_abc.py index 0ab53db..e0b3aaa 100644 --- a/src/modules_core/abc/events/on_group_join_abc.py +++ b/src/modules_core/abc/events/on_group_join_abc.py @@ -1,7 +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 From 04179ce906bc999a16359f18fc5b5a9b9eaac56b Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:39:55 +0100 Subject: [PATCH 6/8] Added on_invite_delete event abc --- src/modules_core/abc/events/on_invite_delete_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_invite_delete_abc.py b/src/modules_core/abc/events/on_invite_delete_abc.py index b72455b..bbd848c 100644 --- a/src/modules_core/abc/events/on_invite_delete_abc.py +++ b/src/modules_core/abc/events/on_invite_delete_abc.py @@ -1,7 +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 From 426772910f1ea0c6885709700f0522ce097b6ec5 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:41:29 +0100 Subject: [PATCH 7/8] Added on_invite_create event abc --- src/modules_core/abc/events/on_invite_create_abc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules_core/abc/events/on_invite_create_abc.py b/src/modules_core/abc/events/on_invite_create_abc.py index ba227a6..ce4e2e0 100644 --- a/src/modules_core/abc/events/on_invite_create_abc.py +++ b/src/modules_core/abc/events/on_invite_create_abc.py @@ -1,7 +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 From 4d7c67a3b6550530499688531abc5aa4c3595314 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 20 Nov 2021 16:42:12 +0100 Subject: [PATCH 8/8] Added on_member_unban event abc --- src/modules_core/abc/events/on_member_unban_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules_core/abc/events/on_member_unban_abc.py b/src/modules_core/abc/events/on_member_unban_abc.py index f81359c..c5bbb8c 100644 --- a/src/modules_core/abc/events/on_member_unban_abc.py +++ b/src/modules_core/abc/events/on_member_unban_abc.py @@ -1,7 +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