class Discordrb::Events::ChannelCreateEvent

Raised when a channel is created

Attributes

channel[R]

@return [Channel] the channel in question.

Public Class Methods

new(data, bot) click to toggle source
# File lib/discordrb/events/channels.rb, line 32
def initialize(data, bot)
  @bot = bot
  @channel = bot.channel(data['id'].to_i)
end