Method: Discorb::Channel#==

Defined in:
lib/discorb/channel/base.rb

#==(other) ⇒ Boolean

Checks if the channel is other channel.

Parameters:

Returns:

  • (Boolean)

    True if the channel is other channel.



38
39
40
41
42
# File 'lib/discorb/channel/base.rb', line 38

def ==(other)
  return false unless other.respond_to?(:id)

  @id == other.id
end