reminteraction

package module
v0.0.0-...-3377a85 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelType

type ChannelType int

type CommandDetails

type CommandDetails struct {
	Name    string `json:"name"`
	GuildID string `json:"guild_id"`
	ID      string `json:"id"`
}

type ConfirmPermissionParams

type ConfirmPermissionParams struct {
	UserID  string `json:"userID"`
	Token   int64  `json:"token"`
	GuildID string `json:"guildID"`
}

type Interaction

type Interaction struct {
	Name               string `json:"name"`
	DefaultInteraction bool   `json:"default_interaction"`
	// contains filtered or unexported fields
}

type InteractionNames

type InteractionNames struct {
	Options []struct {
		Name string `json:"name"`
	} `json:"options"`
}

type InteractionParams

type InteractionParams struct {
	Name              string       `json:"name"`
	SubCommands       []string     `json:"subCommands"`
	DefaultPermission bool         `json:"defaultPermission"`
	GuildID           string       `json:"guildID"`
	UserID            string       `json:"userID"`
	Token             int64        `json:"token"`
	Permissions       []Permission `json:"permissions"`
}

type InteractionType

type InteractionType int

type Option

type Option struct {
	Type         OptionType     `json:"type"`
	Name         string         `json:"name"`
	Description  string         `json:"description"`
	Required     bool           `json:"required"`
	Choices      []OptionChoice `json:"choices"`
	Options      []Option       `json:"options"`
	ChannelTypes []ChannelType  `json:"channel_types"`
	MinValue     float64        `json:"min_value"`
	MaxValue     float64        `json:"max_value"`
	Autocomplete bool           `json:"autocomplete"`
}

type OptionChoice

type OptionChoice struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type OptionType

type OptionType int

type Permission

type Permission struct {
	ID         string         `json:"id"`
	Type       PermissionType `json:"type"`
	Permission bool           `json:"permission"`
}

type PermissionType

type PermissionType int

type TokenResponse

type TokenResponse struct {
	UserID        string `json:"userID"`
	Username      string `json:"username"`
	Discriminator string `json:"discriminator"`
	Avatar        string `json:"avatar"`
	Token         int64  `json:"token"`
	AccessToken   string `json:"accessToken"`
}

type User

type User struct {
	Token  int64  `json:"token"`
	UserID string `json:"userID"`
}

type UserPerms

type UserPerms []struct {
	Permissions string `json:"permissions"`
}

Jump to

Keyboard shortcuts

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