class Discorb::WelcomeScreen

Represents a welcome screen.

Attributes

channels[R]

@return [Array<Discorb::WelcomeScreen::Channel>] The channels to display the welcome screen.

description[R]

@return [String] The description of the welcome screen.

guild[R]

@return [Discorb::Guild] The guild the welcome screen belongs to.

Public Class Methods

new(client, guild, data) click to toggle source

@!visibility private

# File lib/discorb/guild.rb, line 1147
def initialize(client, guild, data)
  @client = client
  @description = data[:description]
  @guild = guild
  @channels = data[:channels].map { |c| WelcomeScreen::Channel.new(client, c, nil) }
end