Class: Discordrb::InviteServer

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

Overview

A server referenced to by an invite

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Method Summary

Methods included from IDObject

#==, #creation_time, synthesise

Instance Attribute Details

#nameString (readonly)

Returns this server's name.

Returns:

  • (String)

    this server's name.


1063
1064
1065
# File 'lib/discordrb/data.rb', line 1063

def name
  @name
end

#splash_hashString? (readonly)

Returns the hash of the server's invite splash screen (for partnered servers) or nil if none is present.

Returns:

  • (String, nil)

    the hash of the server's invite splash screen (for partnered servers) or nil if none is present


1067
1068
1069
# File 'lib/discordrb/data.rb', line 1067

def splash_hash
  @splash_hash
end