Class: OnyxCord::Events::ChannelDeleteEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/onyxcord/events/channels/delete.rb

Overview

Raised when a channel is deleted

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#idInteger (readonly)

Returns the channel's ID.

Returns:



22
23
24
# File 'lib/onyxcord/events/channels/delete.rb', line 22

def id
  @id
end

#nameString (readonly)

Returns the channel's name.

Returns:

  • (String)

    the channel's name



19
20
21
# File 'lib/onyxcord/events/channels/delete.rb', line 19

def name
  @name
end

#owner_idInteger? (readonly)

Returns the channel's owner ID if this is a group channel.

Returns:

  • (Integer, nil)

    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

#positionInteger (readonly)

Returns the position of the channel on the list.

Returns:

  • (Integer)

    the position of the channel on the list



16
17
18
# File 'lib/onyxcord/events/channels/delete.rb', line 16

def position
  @position
end

#serverServer (readonly)

Returns the channel's server.

Returns:

  • (Server)

    the channel's server



25
26
27
# File 'lib/onyxcord/events/channels/delete.rb', line 25

def server
  @server
end

#topicString (readonly)

Returns the channel's topic.

Returns:

  • (String)

    the channel's topic



13
14
15
# File 'lib/onyxcord/events/channels/delete.rb', line 13

def topic
  @topic
end

#typeInteger (readonly)

Returns the channel's type (0: text, 1: private, 2: voice, 3: group).

Returns:

  • (Integer)

    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