Module: Discordrb::MemberAttributes
Overview
Mixin for the attributes members and private members should have
Instance Attribute Summary collapse
-
#boosting_since ⇒ Time?
readonly
When this member boosted this server,
nil
if they haven't. -
#joined_at ⇒ Time
readonly
When this member joined the server.
-
#nick ⇒ String?
(also: #nickname)
readonly
The nickname this member has, or
nil
if it has none. -
#roles ⇒ Array<Role>
readonly
The roles this member has.
-
#server ⇒ Server
readonly
The server this member is on.
Instance Attribute Details
#boosting_since ⇒ Time? (readonly)
Returns when this member boosted this server, nil
if they haven't.
10 11 12 |
# File 'lib/discordrb/data/member.rb', line 10 def boosting_since @boosting_since end |
#joined_at ⇒ Time (readonly)
Returns when this member joined the server.
7 8 9 |
# File 'lib/discordrb/data/member.rb', line 7 def joined_at @joined_at end |
#nick ⇒ String? (readonly) Also known as: nickname
Returns the nickname this member has, or nil
if it has none.
13 14 15 |
# File 'lib/discordrb/data/member.rb', line 13 def nick @nick end |
#roles ⇒ Array<Role> (readonly)
Returns the roles this member has.
17 18 19 |
# File 'lib/discordrb/data/member.rb', line 17 def roles @roles end |
#server ⇒ Server (readonly)
Returns the server this member is on.
20 21 22 |
# File 'lib/discordrb/data/member.rb', line 20 def server @server end |