discord_sdk

package
v0.0.0-...-e164f83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ItemNamesByID = map[string]string{
	"1214340999644446726": "Quack!!",
	"1214340999644446724": "⮕⬆⬇⮕⬆⬇",
	"1214340999644446722": "Wump Shell",
	"1214340999644446720": "Buster Blade",
	"1214340999644446725": "Power Helmet",
	"1214340999644446723": "Speed Boost",
	"1214340999644446721": "Cute Plushie",
	"1214340999644446728": "Dream Hammer",
	"1214340999644446727": "OHHHHH BANANA",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	UserAgent string
	Token     string
}

type Inventory

type Inventory map[string]int

func (Inventory) TryGetNamed

func (i Inventory) TryGetNamed() map[string]int

type OpenLootboxResponse

type OpenLootboxResponse struct {
	UserLootboxData struct {
		UserId        string    `json:"user_id"`
		OpenedItems   Inventory `json:"opened_items"`
		RedeemedPrize bool      `json:"redeemed_prize"`
	} `json:"user_lootbox_data"`
	OpenedItem string `json:"opened_item"`
}

func (*OpenLootboxResponse) GetOpenedItemName

func (r *OpenLootboxResponse) GetOpenedItemName() string

type SDK

type SDK struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *SDK

func (*SDK) OpenLootbox

func (s *SDK) OpenLootbox() (*OpenLootboxResponse, error)

func (*SDK) UseCustomXSuperProperties

func (s *SDK) UseCustomXSuperProperties(xSuperProperties string) *SDK

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL