Method: Discorb::ApplicationCommand::Handler#user_command
- Defined in:
- lib/discorb/app_command/handler.rb
#user_command(command_name, guild_ids: nil, &block) {|interaction, user| ... } ⇒ Discorb::ApplicationCommand::Command
Add user context menu command.
99 100 101 102 103 |
# File 'lib/discorb/app_command/handler.rb', line 99 def user_command(command_name, guild_ids: nil, &block) command = Discorb::ApplicationCommand::Command.new(command_name, guild_ids, block, 2) @commands << command command end |