Class: Discorb::WelcomeScreen

Inherits:
DiscordModel show all
Defined in:
lib/discorb/guild.rb

Overview

Represents a welcome screen.

Defined Under Namespace

Classes: Channel

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#channels -> Array<Discorb::WelcomeScreen::Channel> (readonly)

Returns The channels to display the welcome screen.

Returns:



1260
1261
1262
# File 'lib/discorb/guild.rb', line 1260

def channels
  @channels
end

#description -> String (readonly)

Returns The description of the welcome screen.

Returns:

  • (String)

    The description of the welcome screen.



1258
1259
1260
# File 'lib/discorb/guild.rb', line 1258

def description
  @description
end

#guild -> Discorb::Guild (readonly)

Returns The guild the welcome screen belongs to.

Returns:



1262
1263
1264
# File 'lib/discorb/guild.rb', line 1262

def guild
  @guild
end