Module: Discordrb::MemberAttributes
Overview
Mixin for the attributes members and private members should have
Instance Attribute Summary collapse
-
#deaf ⇒ true, false
(also: #deafened?)
readonly
Whether this member is deafened server-wide.
-
#joined_at ⇒ Time
readonly
When this member joined the server.
-
#mute ⇒ true, false
(also: #muted?)
readonly
Whether this member is muted server-wide.
-
#roles ⇒ Array<Role>
readonly
The roles this member has.
-
#server ⇒ Server
readonly
The server this member is on.
-
#voice_channel ⇒ Channel
readonly
The voice channel the user is in.
Instance Attribute Details
#deaf ⇒ true, false (readonly) Also known as: deafened?
Returns whether this member is deafened server-wide.
212 213 214 |
# File 'lib/discordrb/data.rb', line 212 def deaf @deaf end |
#joined_at ⇒ Time (readonly)
Returns when this member joined the server.
216 217 218 |
# File 'lib/discordrb/data.rb', line 216 def joined_at @joined_at end |
#mute ⇒ true, false (readonly) Also known as: muted?
Returns whether this member is muted server-wide.
208 209 210 |
# File 'lib/discordrb/data.rb', line 208 def mute @mute end |
#roles ⇒ Array<Role> (readonly)
Returns the roles this member has.
219 220 221 |
# File 'lib/discordrb/data.rb', line 219 def roles @roles end |
#server ⇒ Server (readonly)
Returns the server this member is on.
222 223 224 |
# File 'lib/discordrb/data.rb', line 222 def server @server end |
#voice_channel ⇒ Channel (readonly)
Returns the voice channel the user is in.
225 226 227 |
# File 'lib/discordrb/data.rb', line 225 def voice_channel @voice_channel end |