class documentation

class GuildData:

View In Hierarchy

Undocumented

Method __init__ Constructor :param id: the guild's ID :param prefix: the guild's prefix :param consentChannelId: id of the channel which contains the consent message :param consentMessageId: id of the consent message :param timedMoodRefreshes: True if server operates on time-based mood refreshes, False if it operates on message-based :param moodRefreshTime: time between two mood refreshes :param moodResetTime: time between two resets :param moodMessageThreshold: number of messages for mood to start computing :param moodMessageDepth: maximum number of messages considered for mood :param moodTraining: links userIDs to whether their messages will be used for training (defaults to True) :param tldrTimeGap: time between two messages to be considered as part of the same conversation, in minutes :param badWords: list of bad words :param permUser: list of users with permanent access to the bot :param permGroup: list of roles with permanent access to the bot :param muted_users: list of users who are muted...
Method toDict Returns a dict representation of the object :return: dict
Instance Variable badWords Undocumented
Instance Variable consentChannelId Undocumented
Instance Variable consentMessageId Undocumented
Instance Variable displayName Undocumented
Instance Variable emotionCheckMessages Undocumented
Instance Variable id Undocumented
Instance Variable moderators Undocumented
Instance Variable moodMessageDepth Undocumented
Instance Variable moodMessageThreshold Undocumented
Instance Variable moodRefreshTime Undocumented
Instance Variable moodResetTime Undocumented
Instance Variable moods Undocumented
Instance Variable moodTraining Undocumented
Instance Variable muted_users Undocumented
Instance Variable permGroup Undocumented
Instance Variable permUser Undocumented
Instance Variable prefix Undocumented
Instance Variable timedMoodRefreshes Undocumented
Instance Variable tldrTimeGap Undocumented
Instance Variable userActive Undocumented
Instance Variable userMessages Undocumented
Instance Variable users Undocumented
def __init__(self, id, prefix, consentChannelId, consentMessageId, timedMoodRefreshes, moodRefreshTime, moodResetTime, moodMessageThreshold, moodMessageDepth, moodTraining, tldrTimeGap, badWords, permUser, permGroup, muted_users, moderators):

Constructor :param id: the guild's ID :param prefix: the guild's prefix :param consentChannelId: id of the channel which contains the consent message :param consentMessageId: id of the consent message :param timedMoodRefreshes: True if server operates on time-based mood refreshes, False if it operates on message-based :param moodRefreshTime: time between two mood refreshes :param moodResetTime: time between two resets :param moodMessageThreshold: number of messages for mood to start computing :param moodMessageDepth: maximum number of messages considered for mood :param moodTraining: links userIDs to whether their messages will be used for training (defaults to True) :param tldrTimeGap: time between two messages to be considered as part of the same conversation, in minutes :param badWords: list of bad words :param permUser: list of users with permanent access to the bot :param permGroup: list of roles with permanent access to the bot :param muted_users: list of users who are muted

def toDict(self):

Returns a dict representation of the object :return: dict

Returns
dictUndocumented
badWords =

Undocumented

consentChannelId =

Undocumented

consentMessageId =

Undocumented

displayName =

Undocumented

emotionCheckMessages: dict[int, mood.Mood] =

Undocumented

id =

Undocumented

moderators =

Undocumented

moodMessageDepth =

Undocumented

moodMessageThreshold =

Undocumented

moodRefreshTime =

Undocumented

moodResetTime =

Undocumented

moods: dict[int, mood.Mood] =

Undocumented

moodTraining: dict[int, bool] =

Undocumented

muted_users =

Undocumented

permGroup =

Undocumented

permUser =

Undocumented

prefix =

Undocumented

timedMoodRefreshes =

Undocumented

tldrTimeGap =

Undocumented

userActive: dict[int, bool] =

Undocumented

userMessages: dict[int, list[str]] =

Undocumented

users: set =

Undocumented