Class: Discorb::Guild::VanityInvite

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

Overview

Represents a vanity invite.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#code -> String (readonly)

Returns The vanity invite code.

Returns:

  • (String)

    The vanity invite code.



1008
1009
1010
# File 'lib/discorb/guild.rb', line 1008

def code
  @code
end

#url -> String (readonly)

Returns The vanity URL.

Returns:

  • (String)

    The vanity URL.



# File 'lib/discorb/guild.rb', line 1012

#uses -> Integer (readonly)

Returns The number of uses.

Returns:

  • (Integer)

    The number of uses.



1010
1011
1012
# File 'lib/discorb/guild.rb', line 1010

def uses
  @uses
end