Class: OnyxCord::Events::ChannelDeleteEvent
- Defined in:
- lib/onyxcord/events/channels/delete.rb
Overview
Raised when a channel is deleted
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
The channel's ID.
-
#name ⇒ String
readonly
The channel's name.
-
#owner_id ⇒ Integer?
readonly
The channel's owner ID if this is a group channel.
-
#position ⇒ Integer
readonly
The position of the channel on the list.
-
#server ⇒ Server
readonly
The channel's server.
-
#topic ⇒ String
readonly
The channel's topic.
-
#type ⇒ Integer
readonly
The channel's type (0: text, 1: private, 2: voice, 3: group).
Attributes inherited from Event
Instance Attribute Details
#id ⇒ Integer (readonly)
Returns the channel's ID.
22 23 24 |
# File 'lib/onyxcord/events/channels/delete.rb', line 22 def id @id end |
#name ⇒ String (readonly)
Returns the channel's name.
19 20 21 |
# File 'lib/onyxcord/events/channels/delete.rb', line 19 def name @name end |
#owner_id ⇒ Integer? (readonly)
Returns the channel's owner ID if this is a group channel.
28 29 30 |
# File 'lib/onyxcord/events/channels/delete.rb', line 28 def owner_id @owner_id end |
#position ⇒ Integer (readonly)
Returns the position of the channel on the list.
16 17 18 |
# File 'lib/onyxcord/events/channels/delete.rb', line 16 def position @position end |
#server ⇒ Server (readonly)
Returns the channel's server.
25 26 27 |
# File 'lib/onyxcord/events/channels/delete.rb', line 25 def server @server end |
#topic ⇒ String (readonly)
Returns the channel's topic.
13 14 15 |
# File 'lib/onyxcord/events/channels/delete.rb', line 13 def topic @topic end |
#type ⇒ Integer (readonly)
Returns the channel's type (0: text, 1: private, 2: voice, 3: group).
10 11 12 |
# File 'lib/onyxcord/events/channels/delete.rb', line 10 def type @type end |