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, #token, #type, #user, #version

Method Summary

Methods included from Interaction::SourceResponder

#defer_source, #post

Methods inherited from Interaction

#channel, #guild, #inspect

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

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

Returns The contents of the modal.

Returns:

  • ({String => String})

    The contents of the modal.



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

def contents
  @contents
end

#custom_id -> String (readonly)

Returns The custom id of the modal.

Returns:

  • (String)

    The custom id of the modal.



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

def custom_id
  @custom_id
end