diff --git a/antispam/libs/shared/base.py b/antispam/libs/shared/base.py index 81c28a5..06a6cb9 100644 --- a/antispam/libs/shared/base.py +++ b/antispam/libs/shared/base.py @@ -35,6 +35,10 @@ def check_if_message_is_from_a_bot(self, message) -> bool: ------- bool True if the message is from a bot else false + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -51,6 +55,10 @@ async def does_author_have_kick_and_ban_perms(self, message) -> bool: ------- bool True if the author has them else False + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -68,6 +76,10 @@ def get_guild_id_from_message(self, message) -> Optional[int]: The guild's id None This message is not in a guild + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -83,6 +95,10 @@ def get_author_id_from_message(self, message) -> int: ------- int The author's id + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -98,6 +114,10 @@ def get_author_name_from_message(self, message) -> str: ------- str The author's name + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -113,6 +133,10 @@ def get_bot_id_from_message(self, message) -> int: ------- int The bot's id + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -128,6 +152,10 @@ def get_message_id_from_message(self, message) -> int: ------- int The message id + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -143,6 +171,10 @@ def get_channel_id_from_message(self, message) -> int: ------- int The channel id + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -158,6 +190,10 @@ def get_role_ids_for_message_author(self, message) -> List[int]: ------- List[int] A list of role ids, empty list if you can't get any + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError @@ -165,6 +201,10 @@ def get_expected_message_type(self): """Return the expected type of your libraries message. I.e. discord.Message + + Warnings + -------- + Lib classes must implement this. """ raise NotImplementedError