Transformers
Properties
raw?
optional
raw:object
return
return:
TransformerReturnType
handler()
handler: (
data
) =>unknown
Parameters
Parameter | Type |
---|---|
data | ReceiveDispatchEvent |
Returns
unknown
Defined in
ready?
optional
ready:Transformer
<object
>
Type declaration
v
v:
number
user
user:
Structure
guilds
guilds:
UnavailableStructure
[]
session_id
session_id:
string
resume_gateway_url
resume_gateway_url:
string
shard?
optional
shard: [number
,number
]
application
application:
Partial
<Structure
>
Defined in
resumed?
optional
resumed:Transformer
<undefined
>
Defined in
applicationCommandPermissionsUpdate?
optional
applicationCommandPermissionsUpdate:Transformer
<PermissionsStructure
>
Defined in
autoModerationRuleCreate?
optional
autoModerationRuleCreate:Transformer
<RuleStructure
>
Defined in
autoModerationRuleUpdate?
optional
autoModerationRuleUpdate:Transformer
<RuleStructure
>
Defined in
autoModerationRuleDelete?
optional
autoModerationRuleDelete:Transformer
<RuleStructure
>
Defined in
autoModerationActionExecution?
optional
autoModerationActionExecution:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
action
action:
ActionStructure
rule_id
rule_id:
string
rule_trigger_type
rule_trigger_type:
AutoModerationTriggerType
user_id
user_id:
string
channel_id?
optional
channel_id:string
message_id?
optional
message_id:string
alert_system_message_id?
optional
alert_system_message_id:string
content
content:
string
matched_keyword
matched_keyword:
null
|string
matched_content
matched_content:
null
|string
Defined in
channelCreate?
optional
channelCreate:Transformer
<Structure
>
Defined in
channelUpdate?
optional
channelUpdate:Transformer
<Structure
>
Defined in
channelDelete?
optional
channelDelete:Transformer
<Structure
>
Defined in
channelPinsUpdate?
optional
channelPinsUpdate:Transformer
<object
>
Type declaration
guild_id?
optional
guild_id:string
channel_id
channel_id:
string
last_pin_timestamp?
optional
last_pin_timestamp:null
|string
ISO8601 Timestamp
Defined in
threadCreate?
optional
threadCreate:Transformer
<Structure
&object
>
Defined in
threadUpdate?
optional
threadUpdate:Transformer
<Structure
>
Defined in
threadDelete?
optional
threadDelete:Transformer
<Pick
<ThreadChannelStructure
,"id"
|"type"
|"guild_id"
|"parent_id"
>>
Defined in
threadListSync?
optional
threadListSync:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
channel_ids?
optional
channel_ids:string
[]
threads
threads:
Structure
[]
members
members:
ThreadMemberStructure
[]
Defined in
threadMemberUpdate?
optional
threadMemberUpdate:Transformer
<ThreadMemberStructure
&object
>
Defined in
threadMembersUpdate?
optional
threadMembersUpdate:Transformer
<object
>
Type declaration
id
id:
string
guild_id
guild_id:
string
member_count
member_count:
number
added_members?
optional
added_members:ThreadMemberStructure
&MemberStructure
&PresenceUpdateEventFields
[]
removed_member_ids?
optional
removed_member_ids:string
[]
Defined in
guildCreate?
optional
guildCreate:Transformer
<UnavailableStructure
|New
>
Defined in
guildUpdate?
optional
guildUpdate:Transformer
<Structure
>
Defined in
guildDelete?
optional
guildDelete:Transformer
<UnavailableStructure
>
Defined in
guildAuditLogEntryCreate?
optional
guildAuditLogEntryCreate:Transformer
<EntryStructure
>
Defined in
guildBanAdd?
optional
guildBanAdd:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
user
user:
Structure
Defined in
guildBanRemove?
optional
guildBanRemove:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
user
user:
Structure
Defined in
guildEmojisUpdate?
optional
guildEmojisUpdate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
emojis
emojis:
Structure
[]
Defined in
guildStickersUpdate?
optional
guildStickersUpdate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
stickers
stickers:
Structure
[]
Defined in
guildIntegrationsUpdate?
optional
guildIntegrationsUpdate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
Defined in
guildMemberAdd?
optional
guildMemberAdd:Transformer
<MemberStructure
&object
>
Defined in
guildMemberRemove?
optional
guildMemberRemove:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
user
user:
Structure
Defined in
guildMemberUpdate?
optional
guildMemberUpdate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
roles
roles:
string
[]
user
user:
Structure
nick?
optional
nick:null
|string
avatar
avatar:
null
|string
joined_at
joined_at:
null
|string
ISO8601 Timestamp
premium_since?
optional
premium_since:null
|string
ISO8601 Timestamp
deaf?
optional
deaf:boolean
mute?
optional
mute:boolean
pending?
optional
pending:boolean
communication_disabled_until?
optional
communication_disabled_until:null
|string
ISO8601 Timestamp
Defined in
guildMembersChunk?
optional
guildMembersChunk:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
members
members:
MemberStructure
[]
chunk_index
chunk_index:
number
chunk_count
chunk_count:
number
not_found?
optional
not_found:string
[]
presences?
optional
presences:PresenceUpdateEventFields
[]
nonce?
optional
nonce:string
Defined in
guildRoleCreate?
optional
guildRoleCreate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
role
role:
Structure
Defined in
guildRoleUpdate?
optional
guildRoleUpdate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
role
role:
Structure
Defined in
guildRoleDelete?
optional
guildRoleDelete:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
role_id
role_id:
string
Defined in
guildScheduledEventCreate?
optional
guildScheduledEventCreate:Transformer
<ScheduledEventStructure
>
Defined in
guildScheduledEventUpdate?
optional
guildScheduledEventUpdate:Transformer
<ScheduledEventStructure
>
Defined in
guildScheduledEventDelete?
optional
guildScheduledEventDelete:Transformer
<ScheduledEventStructure
>
Defined in
guildScheduledEventUserAdd?
optional
guildScheduledEventUserAdd:Transformer
<object
>
Type declaration
guild_scheduled_event_id
guild_scheduled_event_id:
string
user_id
user_id:
string
guild_id
guild_id:
string
Defined in
guildScheduledEventUserRemove?
optional
guildScheduledEventUserRemove:Transformer
<object
>
Type declaration
guild_scheduled_event_id
guild_scheduled_event_id:
string
user_id
user_id:
string
guild_id
guild_id:
string
Defined in
integrationCreate?
optional
integrationCreate:Transformer
<IntegrationStructure
&object
>
Defined in
integrationUpdate?
optional
integrationUpdate:Transformer
<IntegrationStructure
&object
>
Defined in
integrationDelete?
optional
integrationDelete:Transformer
<object
>
Type declaration
id
id:
string
guild_id
guild_id:
string
application_id?
optional
application_id:string
Defined in
interactionCreate?
optional
interactionCreate:Transformer
<Structure
>
Defined in
inviteCreate?
optional
inviteCreate:Transformer
<object
>
Type declaration
channel_id
channel_id:
string
code
code:
string
created_at
created_at:
string
ISO8601 Timestamp
guild_id?
optional
guild_id:string
inviter?
optional
inviter:Structure
max_age
max_age:
number
max_uses
max_uses:
number
target_type?
optional
target_type:InviteTargetType
target_user?
optional
target_user:Structure
target_application?
optional
target_application:Partial
<Structure
>
temporary
temporary:
boolean
uses
uses:
number
Defined in
inviteDelete?
optional
inviteDelete:Transformer
<object
>
Type declaration
channel_id
channel_id:
string
guild_id?
optional
guild_id:string
code
code:
string
Defined in
messageCreate?
optional
messageCreate:Transformer
<GuildStructure
>
Defined in
messageUpdate?
optional
messageUpdate:Transformer
<Partial
<GuildStructure
>>
Defined in
messageDelete?
optional
messageDelete:Transformer
<object
>
Type declaration
id
id:
string
channel_id
channel_id:
string
guild_id?
optional
guild_id:string
Defined in
messageDeleteBulk?
optional
messageDeleteBulk:Transformer
<object
>
Type declaration
ids
ids:
string
[]
channel_id
channel_id:
string
guild_id?
optional
guild_id:string
Defined in
messageReactionAdd?
optional
messageReactionAdd:Transformer
<object
>
Type declaration
user_id
user_id:
string
channel_id
channel_id:
string
message_id
message_id:
string
guild_id?
optional
guild_id:string
member?
optional
member:MemberStructure
emoji
emoji:
Partial
<Structure
>
message_author_id?
optional
message_author_id:string
Defined in
messageReactionRemove?
optional
messageReactionRemove:Transformer
<object
>
Type declaration
user_id
user_id:
string
channel_id
channel_id:
string
message_id
message_id:
string
guild_id?
optional
guild_id:string
emoji
emoji:
Partial
<Structure
>
Defined in
messageReactionRemoveAll?
optional
messageReactionRemoveAll:Transformer
<object
>
Type declaration
channel_id
channel_id:
string
message_id
message_id:
string
guild_id?
optional
guild_id:string
Defined in
messageReactionRemoveEmoji?
optional
messageReactionRemoveEmoji:Transformer
<object
>
Type declaration
channel_id
channel_id:
string
guild_id?
optional
guild_id:string
message_id
message_id:
string
emoji
emoji:
Partial
<Structure
>
Defined in
presenceUpdate?
optional
presenceUpdate:Transformer
<object
>
Type declaration
user
Only id
will always exist
guild_id
guild_id:
string
status
status:
Status
activities
activities:
ActivityStructure
[]
client_status
client_status:
object
client_status.desktop?
optional
desktop:Status
client_status.mobile?
optional
mobile:Status
client_status.web?
optional
web:Status
Defined in
stageInstanceCreate?
optional
stageInstanceCreate:Transformer
<Structure
>
Defined in
stageInstanceUpdate?
optional
stageInstanceUpdate:Transformer
<Structure
>
Defined in
stageInstanceDelete?
optional
stageInstanceDelete:Transformer
<Structure
>
Defined in
typingStart?
optional
typingStart:Transformer
<object
>
Type declaration
channel_id
channel_id:
string
guild_id?
optional
guild_id:string
user_id
user_id:
string
timestamp
timestamp:
number
member?
optional
member:MemberStructure
Defined in
userUpdate?
optional
userUpdate:Transformer
<Structure
>
Defined in
voiceStateUpdate?
optional
voiceStateUpdate:Transformer
<StateStructure
>
Defined in
voiceServerUpdate?
optional
voiceServerUpdate:Transformer
<object
>
Type declaration
token
token:
string
guild_id
guild_id:
string
endpoint
endpoint:
null
|string
Defined in
webhookUpdate?
optional
webhookUpdate:Transformer
<object
>
Type declaration
guild_id
guild_id:
string
channel_id
channel_id:
string
Defined in
messagePollVoteAdd?
optional
messagePollVoteAdd:Transformer
<GatewayPayload
>
Defined in
messagePollVoteRemove?
optional
messagePollVoteRemove:Transformer
<GatewayPayload
>