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?, #inspect

Instance Attribute Details

#codeString (readonly)

Returns The vanity invite code.

Returns:

  • (String)

    The vanity invite code.



1647
1648
1649
# File 'lib/discorb/guild.rb', line 1647

def code
  @code
end

#urlString (readonly)

Returns The vanity URL.

Returns:

  • (String)

    The vanity URL.



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

#usesInteger (readonly)

Returns The number of uses.

Returns:

  • (Integer)

    The number of uses.



1649
1650
1651
# File 'lib/discorb/guild.rb', line 1649

def uses
  @uses
end