Method: Discordrb::Interactions::OptionBuilder#role
- Defined in:
- lib/discordrb/data/interaction.rb
#role(name, description, required: nil) ⇒ Object
Returns Hash.
676 677 678 |
# File 'lib/discordrb/data/interaction.rb', line 676 def role(name, description, required: nil) option(TYPES[:role], name, description, required: required) end |