Class: Discorb::ModalInteraction

Inherits:
Interaction show all
Includes:
Interaction::SourceResponder
Defined in:
lib/discorb/interaction/modal.rb

Overview

Represents a modal interaction.

Instance Attribute Summary collapse

Attributes inherited from Interaction

#application_id, #guild_locale, #id, #locale, #member, #token, #type, #user, #version

Method Summary

Methods included from Interaction::SourceResponder

#defer_source, #post

Methods inherited from Interaction

#channel, #guild, #inspect, #target

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#contents -> {String => String} (readonly)

Returns The contents of the modal.

Returns:

  • ({String => String})

    The contents of the modal.



18
19
20
# File 'lib/discorb/interaction/modal.rb', line 18

def contents
  @contents
end

#custom_id -> String (readonly)

Returns The custom id of the modal.

Returns:

  • (String)

    The custom id of the modal.



16
17
18
# File 'lib/discorb/interaction/modal.rb', line 16

def custom_id
  @custom_id
end