@@ -806,6 +806,21 @@ class Util extends null {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms API incidents data to a camel-cased variant.
|
||||
* @param {APIIncidentsData} data The incidents data to transform
|
||||
* @returns {IncidentActions}
|
||||
* @ignore
|
||||
*/
|
||||
static transformAPIIncidentsData(data) {
|
||||
return {
|
||||
invitesDisabledUntil: data.invites_disabled_until ? new Date(data.invites_disabled_until) : null,
|
||||
dmsDisabledUntil: data.dms_disabled_until ? new Date(data.dms_disabled_until) : null,
|
||||
dmSpamDetectedAt: data.dm_spam_detected_at ? new Date(data.dm_spam_detected_at) : null,
|
||||
raidDetectedAt: data.raid_detected_at ? new Date(data.raid_detected_at) : null,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an array of the channel types that can be moved in the channel group. For example, a GuildText channel would
|
||||
* return an array containing the types that can be ordered within the text channels (always at the top), and a voice
|
||||
|
||||
Reference in New Issue
Block a user