Class: Discorb::CommandInteraction::UserMenuCommand

Inherits:
Discorb::CommandInteraction show all
Defined in:
lib/discorb/interaction/command.rb

Overview

Represents a user context menu 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::SourceResponse

#defer_source, #post

Methods inherited from Interaction

#channel, #guild, #inspect

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#target -> Discorb::Member, Discorb::User (readonly)

Returns The target user.

Returns:



90
91
92
# File 'lib/discorb/interaction/command.rb', line 90

def target
  @target
end