class Discorb::Gateway::UnknownDeleteBulkMessage
Represents a message but it has only ID.
Attributes
id[R]
@return [Discorb::Snowflake] The ID of the message.
Public Class Methods
new(client, id, data)
click to toggle source
@!visibility private
# File lib/discorb/gateway.rb, line 291 def initialize(client, id, data) @client = client @id = id @data = data @channel_id = Snowflake.new(data[:channel_id]) @guild_id = Snowflake.new(data[:guild_id]) if data.key?(:guild_id) end
Public Instance Methods
channel()
click to toggle source
# File lib/discorb/gateway.rb, line 299 def channel @client.channels[@channel_id] end
guild()
click to toggle source
# File lib/discorb/gateway.rb, line 303 def guild @client.guilds[@guild_id] end