Module: Discordrb::MemberAttributes

Included in:
Member, Recipient
Defined in:
lib/discordrb/data/member.rb

Overview

Mixin for the attributes members and private members should have

Instance Attribute Summary collapse

Instance Attribute Details

#joined_atTime (readonly)

Returns when this member joined the server.

Returns:

  • (Time)

    when this member joined the server.


7
8
9
# File 'lib/discordrb/data/member.rb', line 7

def joined_at
  @joined_at
end

#nickString? (readonly) Also known as: nickname

Returns the nickname this member has, or nil if it has none.

Returns:

  • (String, nil)

    the nickname this member has, or nil if it has none.


10
11
12
# File 'lib/discordrb/data/member.rb', line 10

def nick
  @nick
end

#rolesArray<Role> (readonly)

Returns the roles this member has.

Returns:

  • (Array<Role>)

    the roles this member has.


14
15
16
# File 'lib/discordrb/data/member.rb', line 14

def roles
  @roles
end

#serverServer (readonly)

Returns the server this member is on.

Returns:

  • (Server)

    the server this member is on.


17
18
19
# File 'lib/discordrb/data/member.rb', line 17

def server
  @server
end