Module: Rubycord::MemberAttributes

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

Overview

Mixin for the attributes members and private members should have

Instance Attribute Summary collapse

Instance Attribute Details

#boosting_sinceTime? (readonly)

Returns when this member boosted this server, nil if they haven't.

Returns:

  • (Time, nil)

    when this member boosted this server, nil if they haven't.



8
9
10
# File 'lib/rubycord/data/member.rb', line 8

def boosting_since
  @boosting_since
end

#communication_disabled_untilTime (readonly) Also known as: timeout

Returns When the user's timeout will expire.

Returns:

  • (Time)

    When the user's timeout will expire.



21
22
23
# File 'lib/rubycord/data/member.rb', line 21

def communication_disabled_until
  @communication_disabled_until
end

#joined_atTime (readonly)

Returns when this member joined the server.

Returns:

  • (Time)

    when this member joined the server.



5
6
7
# File 'lib/rubycord/data/member.rb', line 5

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.



11
12
13
# File 'lib/rubycord/data/member.rb', line 11

def nick
  @nick
end

#rolesArray<Role> (readonly)

Returns the roles this member has.

Returns:

  • (Array<Role>)

    the roles this member has.



15
16
17
# File 'lib/rubycord/data/member.rb', line 15

def roles
  @roles
end

#serverServer (readonly)

Returns the server this member is on.

Returns:

  • (Server)

    the server this member is on.



18
19
20
# File 'lib/rubycord/data/member.rb', line 18

def server
  @server
end