discord

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.APIConfig) (resolvers []resolver.CustomURLManager)

Types

type DiscordInviteData

type DiscordInviteData struct {
	Message string `json:"message,omitempty"`
	Guild   struct {
		ID       string   `json:"id"`
		Name     string   `json:"name"`
		IconHash string   `json:"icon"`
		Features []string `json:"features"`
	} `json:"guild,omitempty"`
	Channel struct {
		Name string `json:"name"`
	} `json:"channel,omitempty"`
	Inviter struct {
		Username      string `json:"username"`
		Discriminator string `json:"discriminator"`
	} `json:"inviter,omitempty"`
	OnlineCount uint64 `json:"approximate_presence_count,omitempty"`
	TotalCount  uint64 `json:"approximate_member_count,omitempty"`
}

type TooltipData

type TooltipData struct {
	ServerName    string
	ServerCreated string
	InviteChannel string
	InviterTag    string
	ServerPerks   string
	OnlineCount   string
	TotalCount    string
}

Jump to

Keyboard shortcuts

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