View Source Nostrum.Struct.ApplicationCommandInteractionDataResolved (Nostrum v0.10.0)

Converted interaction payload.

Summary

Types

Attachments sent along with the interaction.

IDs and corresponding partial channels.

IDs and corresponding partial members.

The IDs and corresponding messages.

IDs and corresponding roles

t()

Resolved interaction data

IDs and corresponding users

Types

Link to this type

attachments()

View Source (since 0.7.0)
@type attachments() ::
  %{
    required(Nostrum.Struct.Message.Attachment.id()) =>
      Nostrum.Struct.Message.Attachment.t()
  }
  | nil

Attachments sent along with the interaction.

Link to this type

channels()

View Source (since 0.5.0)
@type channels() ::
  %{
    required(Nostrum.Struct.Channel.id()) =>
      Nostrum.Struct.Channel.guild_text_channel()
  }
  | nil

IDs and corresponding partial channels.

The channels in this map only have the following keys set:

  • id
  • name
  • type
  • permissions
Link to this type

members()

View Source (since 0.5.0)
@type members() ::
  %{required(Nostrum.Struct.User.id()) => Nostrum.Struct.Guild.Member.t()} | nil

IDs and corresponding partial members.

These members are missing values on the following fields:

  • user
  • deaf
  • mute

The corresponding user data can be looked up in users. For members that are part of this map, data for the corresponding user will always be included.

Link to this type

messages()

View Source (since 0.5.0)
@type messages() ::
  %{required(Nostrum.Struct.Message.id()) => Nostrum.Struct.Message.t()} | nil

The IDs and corresponding messages.

@type roles() ::
  %{required(Nostrum.Struct.Guild.Role.id()) => Nostrum.Struct.Guild.Role.t()}
  | nil

IDs and corresponding roles

@type t() :: %Nostrum.Struct.ApplicationCommandInteractionDataResolved{
  attachments: attachments(),
  channels: channels(),
  members: members(),
  messages: messages(),
  roles: roles(),
  users: users()
}

Resolved interaction data

@type users() ::
  %{required(Nostrum.Struct.User.id()) => Nostrum.Struct.User.t()} | nil

IDs and corresponding users