class Discordrb::Events::ChannelSelectEvent
Event
for when a user interacts with a select channel component.
Attributes
values[R]
@return [Array<Channel>] Selected values.
Public Class Methods
new(data, bot)
click to toggle source
@!visibility private
Calls superclass method
Discordrb::Events::ComponentEvent::new
# File lib/discordrb/events/interactions.rb, line 472 def initialize(data, bot) super @values = data['data']['values'].map { |e| bot.channel(e, bot.server(data['guild_id'])) } end