|
| 1 | +===================== |
| 2 | +Classes |
| 3 | +===================== |
| 4 | +This page contains information about any classes that can be used in the framework. |
| 5 | + |
| 6 | + |
| 7 | +Guilds (Servers) |
| 8 | +--------------------- |
| 9 | + |
| 10 | +GUILD |
| 11 | +~~~~~~~~~~~~~~~~~~~~~ |
| 12 | +.. autoclass:: framework.GUILD |
| 13 | + :members: |
| 14 | + |
| 15 | + .. autoproperty:: messages |
| 16 | + |
| 17 | + .. autoproperty:: snowflake |
| 18 | + |
| 19 | +USER |
| 20 | +~~~~~~~~~~~~~~~~~~~~~ |
| 21 | +.. autoclass:: framework.USER |
| 22 | + :members: |
| 23 | + |
| 24 | + .. autoproperty:: messages |
| 25 | + |
| 26 | + .. autoproperty:: snowflake |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +Messages |
| 31 | +--------------------- |
| 32 | + |
| 33 | +TextMESSAGE |
| 34 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 35 | +.. autoclass:: framework.TextMESSAGE |
| 36 | + :members: |
| 37 | + |
| 38 | + .. autoproperty:: deleted |
| 39 | + |
| 40 | +VoiceMESSAGE |
| 41 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 42 | +.. autoclass:: framework.VoiceMESSAGE |
| 43 | + :members: |
| 44 | + |
| 45 | + .. autoproperty:: deleted |
| 46 | + |
| 47 | +DirectMESSAGE |
| 48 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 49 | +.. autoclass:: framework.DirectMESSAGE |
| 50 | + :members: |
| 51 | + |
| 52 | + .. autoproperty:: deleted |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +Message data types |
| 58 | +--------------------- |
| 59 | +These classes describe data that can be passed to the :ref:`Messages` objects |
| 60 | + |
| 61 | +EMBED |
| 62 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 63 | +.. autoclass:: framework.EMBED |
| 64 | + :members: |
| 65 | + :exclude-members: Color, Colour |
| 66 | + |
| 67 | +FILE |
| 68 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 69 | +.. autoclass:: framework.FILE |
| 70 | + :members: |
| 71 | + |
| 72 | +AUDIO |
| 73 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 74 | +.. autoclass:: framework.AUDIO |
| 75 | + :members: |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | +Clients |
| 81 | +--------------------- |
| 82 | + |
| 83 | +CLIENT |
| 84 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 85 | +.. autoclass:: framework.CLIENT |
| 86 | + :members: |
| 87 | + |
| 88 | + |
| 89 | +SQL |
| 90 | +--------------------- |
| 91 | + |
| 92 | +LoggerSQL |
| 93 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 94 | +.. note:: |
| 95 | + See :ref:`Relational Database Log` for usage. |
| 96 | + |
| 97 | +.. autoclass:: framework.LoggerSQL |
| 98 | + :members: |
| 99 | + :exclude-members: Base |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | +Tracing |
| 105 | +--------------------- |
| 106 | + |
| 107 | +TraceLEVELS |
| 108 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 109 | +.. autoenum:: framework.TraceLEVELS |
| 110 | + :members: |
| 111 | + |
| 112 | + |
| 113 | +Exceptions |
| 114 | +--------------------- |
| 115 | + |
| 116 | +Types |
| 117 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 118 | + **DAFError** |
| 119 | + |
| 120 | + .. autoclass:: framework.DAFError |
| 121 | + :members: |
| 122 | + |
| 123 | + **DAFSQLError** |
| 124 | + |
| 125 | + .. autoclass:: framework.DAFSQLError |
| 126 | + :members: |
| 127 | + |
| 128 | + |
| 129 | + **DAFNotFoundError** |
| 130 | + |
| 131 | + .. autoclass:: framework.DAFNotFoundError |
| 132 | + :members: |
| 133 | + |
| 134 | + **DAFParameterError** |
| 135 | + |
| 136 | + .. autoclass:: framework.DAFParameterError |
| 137 | + :members: |
| 138 | + |
| 139 | + |
| 140 | +Error codes |
| 141 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 142 | +.. table:: |
| 143 | + :align: left |
| 144 | + :name: error_codes |
| 145 | + |
| 146 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 147 | + | Name | Code | Description | |
| 148 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 149 | + | DAF_GUILD_ALREADY_ADDED | 0 | Guild with specified snowflake is already added. | |
| 150 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 151 | + | DAF_GUILD_ID_REQUIRED | 1 | Guild ID is required but was not passed. | |
| 152 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 153 | + | DAF_GUILD_ID_NOT_FOUND | 2 | Guild with specified snowflake was not found (or user). | |
| 154 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 155 | + | DAF_USER_CREATE_DM | 3 | Was unable to create DM with user (probably user not found). | |
| 156 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 157 | + | DAF_INVALID_TYPE | 4 | Object of invalid type was given. | |
| 158 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 159 | + | DAF_YOUTUBE_STREAM_ERROR | 5 | The given youtube link could not be streamed (AUDIO, VoiceMESSAGE). | |
| 160 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 161 | + | DAF_FILE_NOT_FOUND | 6 | The given file was not found. | |
| 162 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 163 | + | DAF_UPDATE_PARAMETER_ERROR | 7 | The update method only accepts the following keyword arguments. | |
| 164 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 165 | + | DAF_MISSING_PARAMETER | 8 | The parameter(s) is(are) missing. | |
| 166 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 167 | + | DAF_SQL_CREATE_TABLES_ERROR | 9 | Unable to create all the tables. | |
| 168 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 169 | + | DAF_SQL_LOOKUPTABLE_NOT_FOUND | 10 | The lookup table was not found. | |
| 170 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 171 | + | DAF_SQL_BEGIN_ENGINE_ERROR | 11 | Unable to start engine. | |
| 172 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 173 | + | DAF_SQL_CR_LT_VALUES_ERROR | 12 | Unable to create lookuptables' rows. | |
| 174 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 175 | + | DAF_SQL_CREATE_DT_ERROR | 13 | Unable to create SQL data types. | |
| 176 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 177 | + | DAF_SQL_CREATE_VPF_ERROR | 14 | Unable to create views, procedures and functions. | |
| 178 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
| 179 | + | DAF_SQL_CURSOR_CONN_ERROR | 15 | Unable to connect the cursor. | |
| 180 | + +----------------------------------------+------+----------------------------------------------------------------------------+ |
0 commit comments