Ban entry
Generic models for ban entries.
BanEntryRequest
¶
A generic model for ban entry requests.
Parameters¶
provider: str Source for where the user or guild is banned. reason: str Why the user or guild is banned. moderator: int User ID of the responsible moderator, usually Discord. reason_key: str | None Machine-readable version of the reason - only present for providers ravy and dservices.
Attributes¶
provider: str Source for where the user or guild is banned. reason: str Why the user or guild is banned. moderator: int User ID of the responsible moderator, usually Discord. reason_key: str | None Machine-readable version of the reason - only present for providers ravy and dservices.
Source code in ravyapi/api/models/generic/ban_entry.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
|
moderator: int
property
¶
User ID of the responsible moderator, usually Discord.
provider: str
property
¶
Source for where the user or guild is banned.
reason: str
property
¶
Why the user or guild is banned.
reason_key: str | None
property
¶
Machine-readable version of the reason - only present for providers ravy and dservices.
__init__(provider, reason, moderator, reason_key=None)
¶
Parameters¶
provider: str Source for where the user or guild is banned. reason: str Why the user or guild is banned. moderator: int User ID of the responsible moderator, usually Discord. reason_key: str | None Machine-readable version of the reason - only present for providers ravy and dservices.
Source code in ravyapi/api/models/generic/ban_entry.py
to_json()
¶
Returns a JSON representation of the model.
Returns¶
dict[str, Any] A JSON representation of the model.
Source code in ravyapi/api/models/generic/ban_entry.py
BanEntryResponse
¶
A generic model for ban entry responses.
Attributes¶
data: dict[str, Any] The raw data returned from the Ravy API. provider: str Source for where the user or guild was banned. reason: str Why the user or guild was banned. reason_key: str | None Machine-readable version of the reason - only present for providers ravy and dservices. moderator: int User ID of the responsible moderator, usually Discord.
Source code in ravyapi/api/models/generic/ban_entry.py
data: dict[str, Any]
property
¶
The raw data returned from the Ravy API.
moderator: int
property
¶
User ID of the responsible moderator, usually Discord.
provider: str
property
¶
Source for where the user or guild was banned.
reason: str
property
¶
Why the user or guild was banned.
reason_key: str | None
property
¶
Machine-readable version of the reason - only present for providers ravy and dservices.