class MijDiscord::Data::Recipient

Attributes

joined_at[R]
nick[R]
nickname[R]
roles[R]
server[R]

Public Class Methods

new(user, channel, bot) click to toggle source
Calls superclass method
# File lib/mij-discord/data/member.rb, line 159
def initialize(user, channel, bot)
  @bot, @channel, @user = bot, channel, user
  raise ArgumentError, 'Recipient for public channel' unless channel.private?

  super @user

  @mute = @deaf = @self_mute = @self_deaf = false
  @voice_channel, @server, @roles = nil, nil, []
  @nickname, @joined_at = '', @channel.creation_time
end

Public Instance Methods

inspect() click to toggle source
# File lib/mij-discord/data/member.rb, line 170
def inspect
  MijDiscord.make_inspect(self, :user, :joined_at)
end