Class: Discordrb::InviteChannel

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/discordrb/data.rb

Overview

A channel referenced by an invite. It has less data than regular channels, so it's a separate class

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Method Summary

Methods included from IDObject

#==, #creation_time

Instance Attribute Details

#nameString (readonly)

Returns this channel's name.

Returns:

  • (String)

    this channel's name.



898
899
900
# File 'lib/discordrb/data.rb', line 898

def name
  @name
end

#typeInteger (readonly)

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

Returns:

  • (Integer)

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



901
902
903
# File 'lib/discordrb/data.rb', line 901

def type
  @type
end