class Discordrb::Events::ThreadCreateEvent
Raised when a thread is created
Attributes
thread[R]
@return [Channel] the thread in question.
Public Class Methods
new(data, bot)
click to toggle source
# File lib/discordrb/events/threads.rb, line 11 def initialize(data, bot) @bot = bot @thread = data.is_a?(Discordrb::Channel) ? data : bot.channel(data['id'].to_i) end