class Discordrb::InviteChannel

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

Attributes

name[R]

@return [String] this channel’s name.

type[R]

@return [Integer] this channel’s type (0: text, 1: private, 2: voice, 3: group).

Public Class Methods

new(data, bot) click to toggle source

@!visibility private

# File lib/discordrb/data/invite.rb, line 15
def initialize(data, bot)
  @bot = bot

  @id = data['id'].to_i
  @name = data['name']
  @type = data['type']
end