GuildIncidents
A guild's incidents.
Attributes
None
, DateTime
When direct message spam was detected.
None
, DateTime
Until when are the direct messages disabled in the guild.
None
, DateTime
Until when are the invites disabled of the guild.
None
, DateTime
When raid was detected.
Methods
(...)
__new__Creates a new guild incidents with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
direct_message_spam_detected_at |
| When direct message spam was detected. | ||
direct_messages_disabled_until |
| Until when are the direct messages disabled in the guild. | ||
invites_disabled_until |
| Until when are the invites disabled of the guild. | ||
raid_detected_at |
| When raid was detected. |
Raises
TypeError
- Parameter with incorrect type given.
ValueError
- Parameter with incorrect value given.
()
copyCopies the guild incidents.
Returns
new : instance<type<self>>
(...)
copy_withCopies the guild incidents with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
direct_message_spam_detected_at |
| When direct message spam was detected. | ||
direct_messages_disabled_until |
| Until when are the direct messages disabled in the guild. | ||
invites_disabled_until |
| Until when are the invites disabled of the guild. | ||
raid_detected_at |
| When raid was detected. |
Returns
new : instance<type<self>>
Raises
TypeError
- Parameter with incorrect type given.
ValueError
- Parameter with incorrect value given.
(data)
from_dataCreates a guild incidents from the requested guild incidents data.
Parameter | Type | Description |
---|---|---|
data |
| Received guild incidents data. |
Returns
self : instance<cls>
(...)
to_dataConverts the guild incidents to a json serializable object.
Parameter | Type | Optional | Keyword only | Default | Description |
---|---|---|---|---|---|
defaults |
|
| Whether default values should be included as well. | ||
include_internals |
|
| Whether internal fields should also be included as well. |
Returns
data : dict<str, object>
()
__bool__Returns whether the guild has any features.
()
__eq__Returns whether the two guild incidents are equal.
()
__getattr__Drops a rich attribute error.
()
__hash__Returns the hash value of the guild incidents.
()
__repr__Returns the guild incidents' representation.