Method: LibDiscord.maps

Defined in:
lib/lib_discord/maps.rb

.mapsHash

Get the data structure for Discord encoded types, modes, levels, etc. This data structure exists for your convenience to help add meaning to information encoded within integers and bitmasks spread across Discord’s web API.

Examples:

aco_types = LibDiscord.maps[:ApplicationCommandOptionTypes]
aco_types[:CHANNEL] # => 7

Returns:

  • (Hash)


729
# File 'lib/lib_discord/maps.rb', line 729

def self.maps = MAPS