class Discordrb::Events::MessageIDEvent
A subset of MessageEvent
that only contains a message ID and a channel
Attributes
id[R]
@return [Integer] the ID associated with this event
Public Class Methods
new(data, bot)
click to toggle source
@!visibility private
# File lib/discordrb/events/message.rb, line 250 def initialize(data, bot) @id = data['id'].to_i @channel = bot.channel(data['channel_id'].to_i) @saved_message = '' @bot = bot end