GuildIncidents

A guild's incidents.

Attributes

direct_message_spam_detected_at : None, DateTime

When direct message spam was detected.

direct_messages_disabled_until : None, DateTime

Until when are the direct messages disabled in the guild.

invites_disabled_until : None, DateTime

Until when are the invites disabled of the guild.

raid_detected_at : None, DateTime

When raid was detected.

Methods

__new__(...)

Creates a new guild incidents with the given fields.

ParameterTypeOptionalKeyword onlyDescription
direct_message_spam_detected_at

None, DateTime

When direct message spam was detected.

direct_messages_disabled_until

None, DateTime

Until when are the direct messages disabled in the guild.

invites_disabled_until

None, DateTime

Until when are the invites disabled of the guild.

raid_detected_at

None, DateTime

When raid was detected.

Raises

TypeError

  • Parameter with incorrect type given.

ValueError

  • Parameter with incorrect value given.

copy()

Copies the guild incidents.

Returns

new : instance<type<self>>

copy_with(...)

Copies the guild incidents with the given fields.

ParameterTypeOptionalKeyword onlyDescription
direct_message_spam_detected_at

None, DateTime

When direct message spam was detected.

direct_messages_disabled_until

None, DateTime

Until when are the direct messages disabled in the guild.

invites_disabled_until

None, DateTime

Until when are the invites disabled of the guild.

raid_detected_at

None, DateTime

When raid was detected.

Returns

new : instance<type<self>>

Raises

TypeError

  • Parameter with incorrect type given.

ValueError

  • Parameter with incorrect value given.

from_data(data)

Creates a guild incidents from the requested guild incidents data.

ParameterTypeDescription
data

dict<str, object>

Received guild incidents data.

Returns

self : instance<cls>

to_data(...)

Converts the guild incidents to a json serializable object.

ParameterTypeOptionalKeyword onlyDefaultDescription
defaults

bool

False

Whether default values should be included as well.

include_internals

bool

False

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.