Undocumented
Class | moderation |
Class to store moderation data |
Async Function | add |
Adds a banned word to the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Function | add |
Adds the guild to the bot's file :param userID: int:the id of the user :param guild: discord.Guild: the guild to add :param infractionInfo: str: the type of infraction :param reason: str:the reason of the infraction :return: None... |
Async Function | automod |
Processes auto moderation, on_message event :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Async Function | ban |
Bans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None |
Async Function | create |
Creates the different mood roles :param bot: the bot :param guild: the guild to put the roles in :return: None |
Function | get |
Gets the infraction info of a user :param userID: the user ID :param guildID: the guild ID :return: the infraction info |
Function | get |
Gets the info of a user in every server :param userID: the user ID :return: the info of the user in every server |
Async Function | kick |
Kicks a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None |
Async Function | list |
Lists the banned words :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Function | moderation |
Adds a moderator role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Async Function | muteuser |
Mutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Function | perm |
Adds a permission role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Async Function | remove |
Removes a banned word from the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Function | roles |
Checks if the mood roles are already on the guild :param guild: the guild to check :return: True if the roles are present, False if not :rtype: bool |
Async Function | unban |
Unbans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None |
Function | unmute |
Unmutes a user :param bot: the bot :param guildId: the id of the guild the user is in :param userID: the id of the user to unmute :return: None |
Async Function | unmute |
Unmutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None |
Async Function | update |
Decrements the time of all the muted users for every minute :param bot: the bot to decrement the time for :return: None |
Adds a banned word to the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Adds the guild to the bot's file :param userID: int:the id of the user :param guild: discord.Guild: the guild to add :param infractionInfo: str: the type of infraction :param reason: str:the reason of the infraction :return: None
Parameters | |
user | Undocumented |
guild:discord.Guild | Undocumented |
infraction | Undocumented |
reason | Undocumented |
Processes auto moderation, on_message event :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Bans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None
Creates the different mood roles :param bot: the bot :param guild: the guild to put the roles in :return: None
Parameters | |
bot | Undocumented |
guild:discord.Guild | Undocumented |
Gets the infraction info of a user :param userID: the user ID :param guildID: the guild ID :return: the infraction info
Gets the info of a user in every server :param userID: the user ID :return: the info of the user in every server
Kicks a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None
Lists the banned words :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Adds a moderator role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Mutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Adds a permission role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Removes a banned word from the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Checks if the mood roles are already on the guild :param guild: the guild to check :return: True if the roles are present, False if not :rtype: bool
Parameters | |
guild:discord.Guild | Undocumented |
Unbans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None
Unmutes a user :param bot: the bot :param guildId: the id of the guild the user is in :param userID: the id of the user to unmute :return: None
Unmutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None