discord

package
v0.0.0-...-07e1512 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Event_name = map[int32]string{
		0:  "UNSPECIFIED",
		1:  "HELLO",
		2:  "READY",
		3:  "RESUMED",
		4:  "RECONNECT",
		5:  "INVALID_SESSION",
		6:  "CHANNEL_CREATE",
		7:  "CHANNEL_UPDATE",
		8:  "CHANNEL_DELETE",
		9:  "CHANNEL_PINS_UPDATE",
		10: "GUILD_CREATE",
		11: "GUILD_UPDATE",
		12: "GUILD_DELETE",
		13: "GUILD_BAN_ADD",
		14: "GUILD_BAN_REMOVE",
		15: "GUILD_EMOJIS_UPDATE",
		16: "GUILD_INTEGRATIONS_UPDATE",
		17: "GUILD_MEMBER_ADD",
		18: "GUILD_MEMBER_REMOVE",
		19: "GUILD_MEMBER_UPDATE",
		20: "GUILD_MEMBERS_CHUNK",
		21: "GUILD_ROLE_CREATE",
		22: "GUILD_ROLE_UPDATE",
		23: "GUILD_ROLE_DELETE",
		24: "MESSAGE_CREATE",
		25: "MESSAGE_UPDATE",
		26: "MESSAGE_DELETE",
		27: "MESSAGE_DELETE_BULK",
		28: "MESSAGE_REACTION_ADD",
		29: "MESSAGE_REACTION_REMOVE",
		30: "MESSAGE_REACTION_REMOVE_ALL",
		31: "PRESENCE_UPDATE",
		32: "TYPING_START",
		33: "USER_UPDATE",
		34: "VOICE_STATE_UPDATE",
		35: "VOICE_SERVER_UPDATE",
		36: "WEBHOOKS_UPDATE",
	}
	Event_value = map[string]int32{
		"UNSPECIFIED":                 0,
		"HELLO":                       1,
		"READY":                       2,
		"RESUMED":                     3,
		"RECONNECT":                   4,
		"INVALID_SESSION":             5,
		"CHANNEL_CREATE":              6,
		"CHANNEL_UPDATE":              7,
		"CHANNEL_DELETE":              8,
		"CHANNEL_PINS_UPDATE":         9,
		"GUILD_CREATE":                10,
		"GUILD_UPDATE":                11,
		"GUILD_DELETE":                12,
		"GUILD_BAN_ADD":               13,
		"GUILD_BAN_REMOVE":            14,
		"GUILD_EMOJIS_UPDATE":         15,
		"GUILD_INTEGRATIONS_UPDATE":   16,
		"GUILD_MEMBER_ADD":            17,
		"GUILD_MEMBER_REMOVE":         18,
		"GUILD_MEMBER_UPDATE":         19,
		"GUILD_MEMBERS_CHUNK":         20,
		"GUILD_ROLE_CREATE":           21,
		"GUILD_ROLE_UPDATE":           22,
		"GUILD_ROLE_DELETE":           23,
		"MESSAGE_CREATE":              24,
		"MESSAGE_UPDATE":              25,
		"MESSAGE_DELETE":              26,
		"MESSAGE_DELETE_BULK":         27,
		"MESSAGE_REACTION_ADD":        28,
		"MESSAGE_REACTION_REMOVE":     29,
		"MESSAGE_REACTION_REMOVE_ALL": 30,
		"PRESENCE_UPDATE":             31,
		"TYPING_START":                32,
		"USER_UPDATE":                 33,
		"VOICE_STATE_UPDATE":          34,
		"VOICE_SERVER_UPDATE":         35,
		"WEBHOOKS_UPDATE":             36,
	}
)

Enum value maps for Event.

View Source
var File_pkg_proto_discord_discord_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Embed

type Embed struct {
	Title       string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Type        string          `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Description string          `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Url         string          `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	Timestamp   string          `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Color       int32           `protobuf:"varint,6,opt,name=color,proto3" json:"color,omitempty"`
	Footer      *EmbedFooter    `protobuf:"bytes,7,opt,name=footer,proto3" json:"footer,omitempty"`
	Image       *EmbedImage     `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	Thumbnail   *EmbedThumbnail `protobuf:"bytes,9,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
	Video       *EmbedVideo     `protobuf:"bytes,10,opt,name=video,proto3" json:"video,omitempty"`
	Provider    *EmbedProvider  `protobuf:"bytes,11,opt,name=provider,proto3" json:"provider,omitempty"`
	Author      *EmbedAuthor    `protobuf:"bytes,12,opt,name=author,proto3" json:"author,omitempty"`
	Fields      []*EmbedField   `protobuf:"bytes,13,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object

func (*Embed) Descriptor deprecated

func (*Embed) Descriptor() ([]byte, []int)

Deprecated: Use Embed.ProtoReflect.Descriptor instead.

func (*Embed) GetAuthor

func (x *Embed) GetAuthor() *EmbedAuthor

func (*Embed) GetColor

func (x *Embed) GetColor() int32

func (*Embed) GetDescription

func (x *Embed) GetDescription() string

func (*Embed) GetFields

func (x *Embed) GetFields() []*EmbedField

func (*Embed) GetFooter

func (x *Embed) GetFooter() *EmbedFooter

func (*Embed) GetImage

func (x *Embed) GetImage() *EmbedImage

func (*Embed) GetProvider

func (x *Embed) GetProvider() *EmbedProvider

func (*Embed) GetThumbnail

func (x *Embed) GetThumbnail() *EmbedThumbnail

func (*Embed) GetTimestamp

func (x *Embed) GetTimestamp() string

func (*Embed) GetTitle

func (x *Embed) GetTitle() string

func (*Embed) GetType

func (x *Embed) GetType() string

func (*Embed) GetUrl

func (x *Embed) GetUrl() string

func (*Embed) GetVideo

func (x *Embed) GetVideo() *EmbedVideo

func (*Embed) ProtoMessage

func (*Embed) ProtoMessage()

func (*Embed) ProtoReflect

func (x *Embed) ProtoReflect() protoreflect.Message

func (*Embed) Reset

func (x *Embed) Reset()

func (*Embed) String

func (x *Embed) String() string

type EmbedAuthor

type EmbedAuthor struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Url          string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	IconUrl      string `protobuf:"bytes,3,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"`
	ProxyIconUrl string `protobuf:"bytes,4,opt,name=proxy_icon_url,json=proxyIconUrl,proto3" json:"proxy_icon_url,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure

func (*EmbedAuthor) Descriptor deprecated

func (*EmbedAuthor) Descriptor() ([]byte, []int)

Deprecated: Use EmbedAuthor.ProtoReflect.Descriptor instead.

func (*EmbedAuthor) GetIconUrl

func (x *EmbedAuthor) GetIconUrl() string

func (*EmbedAuthor) GetName

func (x *EmbedAuthor) GetName() string

func (*EmbedAuthor) GetProxyIconUrl

func (x *EmbedAuthor) GetProxyIconUrl() string

func (*EmbedAuthor) GetUrl

func (x *EmbedAuthor) GetUrl() string

func (*EmbedAuthor) ProtoMessage

func (*EmbedAuthor) ProtoMessage()

func (*EmbedAuthor) ProtoReflect

func (x *EmbedAuthor) ProtoReflect() protoreflect.Message

func (*EmbedAuthor) Reset

func (x *EmbedAuthor) Reset()

func (*EmbedAuthor) String

func (x *EmbedAuthor) String() string

type EmbedField

type EmbedField struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value  string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Inline bool   `protobuf:"varint,3,opt,name=inline,proto3" json:"inline,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure

func (*EmbedField) Descriptor deprecated

func (*EmbedField) Descriptor() ([]byte, []int)

Deprecated: Use EmbedField.ProtoReflect.Descriptor instead.

func (*EmbedField) GetInline

func (x *EmbedField) GetInline() bool

func (*EmbedField) GetName

func (x *EmbedField) GetName() string

func (*EmbedField) GetValue

func (x *EmbedField) GetValue() string

func (*EmbedField) ProtoMessage

func (*EmbedField) ProtoMessage()

func (*EmbedField) ProtoReflect

func (x *EmbedField) ProtoReflect() protoreflect.Message

func (*EmbedField) Reset

func (x *EmbedField) Reset()

func (*EmbedField) String

func (x *EmbedField) String() string

type EmbedFooter

type EmbedFooter struct {
	Text         string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	IconUrl      string `protobuf:"bytes,2,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"`
	ProxyIconUrl string `protobuf:"bytes,3,opt,name=proxy_icon_url,json=proxyIconUrl,proto3" json:"proxy_icon_url,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure

func (*EmbedFooter) Descriptor deprecated

func (*EmbedFooter) Descriptor() ([]byte, []int)

Deprecated: Use EmbedFooter.ProtoReflect.Descriptor instead.

func (*EmbedFooter) GetIconUrl

func (x *EmbedFooter) GetIconUrl() string

func (*EmbedFooter) GetProxyIconUrl

func (x *EmbedFooter) GetProxyIconUrl() string

func (*EmbedFooter) GetText

func (x *EmbedFooter) GetText() string

func (*EmbedFooter) ProtoMessage

func (*EmbedFooter) ProtoMessage()

func (*EmbedFooter) ProtoReflect

func (x *EmbedFooter) ProtoReflect() protoreflect.Message

func (*EmbedFooter) Reset

func (x *EmbedFooter) Reset()

func (*EmbedFooter) String

func (x *EmbedFooter) String() string

type EmbedImage

type EmbedImage struct {
	Url      string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	ProxyUrl string `protobuf:"bytes,2,opt,name=proxy_url,json=proxyUrl,proto3" json:"proxy_url,omitempty"`
	Width    int32  `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Height   int32  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure

func (*EmbedImage) Descriptor deprecated

func (*EmbedImage) Descriptor() ([]byte, []int)

Deprecated: Use EmbedImage.ProtoReflect.Descriptor instead.

func (*EmbedImage) GetHeight

func (x *EmbedImage) GetHeight() int32

func (*EmbedImage) GetProxyUrl

func (x *EmbedImage) GetProxyUrl() string

func (*EmbedImage) GetUrl

func (x *EmbedImage) GetUrl() string

func (*EmbedImage) GetWidth

func (x *EmbedImage) GetWidth() int32

func (*EmbedImage) ProtoMessage

func (*EmbedImage) ProtoMessage()

func (*EmbedImage) ProtoReflect

func (x *EmbedImage) ProtoReflect() protoreflect.Message

func (*EmbedImage) Reset

func (x *EmbedImage) Reset()

func (*EmbedImage) String

func (x *EmbedImage) String() string

type EmbedProvider

type EmbedProvider struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Url  string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-provider-structure

func (*EmbedProvider) Descriptor deprecated

func (*EmbedProvider) Descriptor() ([]byte, []int)

Deprecated: Use EmbedProvider.ProtoReflect.Descriptor instead.

func (*EmbedProvider) GetName

func (x *EmbedProvider) GetName() string

func (*EmbedProvider) GetUrl

func (x *EmbedProvider) GetUrl() string

func (*EmbedProvider) ProtoMessage

func (*EmbedProvider) ProtoMessage()

func (*EmbedProvider) ProtoReflect

func (x *EmbedProvider) ProtoReflect() protoreflect.Message

func (*EmbedProvider) Reset

func (x *EmbedProvider) Reset()

func (*EmbedProvider) String

func (x *EmbedProvider) String() string

type EmbedThumbnail

type EmbedThumbnail struct {
	Url      string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	ProxyUrl string `protobuf:"bytes,2,opt,name=proxy_url,json=proxyUrl,proto3" json:"proxy_url,omitempty"`
	Width    int32  `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Height   int32  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure

func (*EmbedThumbnail) Descriptor deprecated

func (*EmbedThumbnail) Descriptor() ([]byte, []int)

Deprecated: Use EmbedThumbnail.ProtoReflect.Descriptor instead.

func (*EmbedThumbnail) GetHeight

func (x *EmbedThumbnail) GetHeight() int32

func (*EmbedThumbnail) GetProxyUrl

func (x *EmbedThumbnail) GetProxyUrl() string

func (*EmbedThumbnail) GetUrl

func (x *EmbedThumbnail) GetUrl() string

func (*EmbedThumbnail) GetWidth

func (x *EmbedThumbnail) GetWidth() int32

func (*EmbedThumbnail) ProtoMessage

func (*EmbedThumbnail) ProtoMessage()

func (*EmbedThumbnail) ProtoReflect

func (x *EmbedThumbnail) ProtoReflect() protoreflect.Message

func (*EmbedThumbnail) Reset

func (x *EmbedThumbnail) Reset()

func (*EmbedThumbnail) String

func (x *EmbedThumbnail) String() string

type EmbedVideo

type EmbedVideo struct {
	Url    string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Width  int32  `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
	Height int32  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure

func (*EmbedVideo) Descriptor deprecated

func (*EmbedVideo) Descriptor() ([]byte, []int)

Deprecated: Use EmbedVideo.ProtoReflect.Descriptor instead.

func (*EmbedVideo) GetHeight

func (x *EmbedVideo) GetHeight() int32

func (*EmbedVideo) GetUrl

func (x *EmbedVideo) GetUrl() string

func (*EmbedVideo) GetWidth

func (x *EmbedVideo) GetWidth() int32

func (*EmbedVideo) ProtoMessage

func (*EmbedVideo) ProtoMessage()

func (*EmbedVideo) ProtoReflect

func (x *EmbedVideo) ProtoReflect() protoreflect.Message

func (*EmbedVideo) Reset

func (x *EmbedVideo) Reset()

func (*EmbedVideo) String

func (x *EmbedVideo) String() string

type Event

type Event int32

List of Discord Gateway events https://discord.com/developers/docs/topics/gateway#commands-and-events

const (
	Event_UNSPECIFIED                 Event = 0
	Event_HELLO                       Event = 1
	Event_READY                       Event = 2
	Event_RESUMED                     Event = 3
	Event_RECONNECT                   Event = 4
	Event_INVALID_SESSION             Event = 5
	Event_CHANNEL_CREATE              Event = 6
	Event_CHANNEL_UPDATE              Event = 7
	Event_CHANNEL_DELETE              Event = 8
	Event_CHANNEL_PINS_UPDATE         Event = 9
	Event_GUILD_CREATE                Event = 10
	Event_GUILD_UPDATE                Event = 11
	Event_GUILD_DELETE                Event = 12
	Event_GUILD_BAN_ADD               Event = 13
	Event_GUILD_BAN_REMOVE            Event = 14
	Event_GUILD_EMOJIS_UPDATE         Event = 15
	Event_GUILD_INTEGRATIONS_UPDATE   Event = 16
	Event_GUILD_MEMBER_ADD            Event = 17
	Event_GUILD_MEMBER_REMOVE         Event = 18
	Event_GUILD_MEMBER_UPDATE         Event = 19
	Event_GUILD_MEMBERS_CHUNK         Event = 20
	Event_GUILD_ROLE_CREATE           Event = 21
	Event_GUILD_ROLE_UPDATE           Event = 22
	Event_GUILD_ROLE_DELETE           Event = 23
	Event_MESSAGE_CREATE              Event = 24
	Event_MESSAGE_UPDATE              Event = 25
	Event_MESSAGE_DELETE              Event = 26
	Event_MESSAGE_DELETE_BULK         Event = 27
	Event_MESSAGE_REACTION_ADD        Event = 28
	Event_MESSAGE_REACTION_REMOVE     Event = 29
	Event_MESSAGE_REACTION_REMOVE_ALL Event = 30
	Event_PRESENCE_UPDATE             Event = 31
	Event_TYPING_START                Event = 32
	Event_USER_UPDATE                 Event = 33
	Event_VOICE_STATE_UPDATE          Event = 34
	Event_VOICE_SERVER_UPDATE         Event = 35
	Event_WEBHOOKS_UPDATE             Event = 36
)

func (Event) Descriptor

func (Event) Descriptor() protoreflect.EnumDescriptor

func (Event) Enum

func (x Event) Enum() *Event

func (Event) EnumDescriptor deprecated

func (Event) EnumDescriptor() ([]byte, []int)

Deprecated: Use Event.Descriptor instead.

func (Event) Number

func (x Event) Number() protoreflect.EnumNumber

func (Event) String

func (x Event) String() string

func (Event) Type

func (Event) Type() protoreflect.EnumType

type Role

type Role struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Color       int32  `protobuf:"varint,3,opt,name=color,proto3" json:"color,omitempty"`
	Hoist       bool   `protobuf:"varint,4,opt,name=hoist,proto3" json:"hoist,omitempty"`
	Position    int32  `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
	Permissions int32  `protobuf:"varint,6,opt,name=permissions,proto3" json:"permissions,omitempty"`
	Managed     bool   `protobuf:"varint,7,opt,name=managed,proto3" json:"managed,omitempty"`
	Mentionable bool   `protobuf:"varint,8,opt,name=mentionable,proto3" json:"mentionable,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/topics/permissions#role-object

func (*Role) Descriptor deprecated

func (*Role) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetColor

func (x *Role) GetColor() int32

func (*Role) GetHoist

func (x *Role) GetHoist() bool

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetManaged

func (x *Role) GetManaged() bool

func (*Role) GetMentionable

func (x *Role) GetMentionable() bool

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetPermissions

func (x *Role) GetPermissions() int32

func (*Role) GetPosition

func (x *Role) GetPosition() int32

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type SendMessagePayload

type SendMessagePayload struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Nonce   string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Tts     bool   `protobuf:"varint,3,opt,name=tts,proto3" json:"tts,omitempty"`
	Embed   *Embed `protobuf:"bytes,4,opt,name=embed,proto3" json:"embed,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/channel#create-message

func (*SendMessagePayload) Descriptor deprecated

func (*SendMessagePayload) Descriptor() ([]byte, []int)

Deprecated: Use SendMessagePayload.ProtoReflect.Descriptor instead.

func (*SendMessagePayload) GetContent

func (x *SendMessagePayload) GetContent() string

func (*SendMessagePayload) GetEmbed

func (x *SendMessagePayload) GetEmbed() *Embed

func (*SendMessagePayload) GetNonce

func (x *SendMessagePayload) GetNonce() string

func (*SendMessagePayload) GetTts

func (x *SendMessagePayload) GetTts() bool

func (*SendMessagePayload) ProtoMessage

func (*SendMessagePayload) ProtoMessage()

func (*SendMessagePayload) ProtoReflect

func (x *SendMessagePayload) ProtoReflect() protoreflect.Message

func (*SendMessagePayload) Reset

func (x *SendMessagePayload) Reset()

func (*SendMessagePayload) String

func (x *SendMessagePayload) String() string

type User

type User struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username      string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Discriminator string `protobuf:"bytes,3,opt,name=discriminator,proto3" json:"discriminator,omitempty"`
	Avatar        string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Bot           bool   `protobuf:"varint,5,opt,name=bot,proto3" json:"bot,omitempty"`
	System        bool   `protobuf:"varint,6,opt,name=system,proto3" json:"system,omitempty"`
	MfaEnabled    bool   `protobuf:"varint,7,opt,name=mfa_enabled,json=mfaEnabled,proto3" json:"mfa_enabled,omitempty"`
	Locale        string `protobuf:"bytes,8,opt,name=locale,proto3" json:"locale,omitempty"`
	Verified      bool   `protobuf:"varint,9,opt,name=verified,proto3" json:"verified,omitempty"`
	Email         string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"`
	Flags         int32  `protobuf:"varint,11,opt,name=flags,proto3" json:"flags,omitempty"`
	PremiumType   int32  `protobuf:"varint,12,opt,name=premium_type,json=premiumType,proto3" json:"premium_type,omitempty"`
	PublicType    int32  `protobuf:"varint,13,opt,name=public_type,json=publicType,proto3" json:"public_type,omitempty"`
	// Custom additional fields
	AvatarData string `protobuf:"bytes,14,opt,name=avatar_data,json=avatarData,proto3" json:"avatar_data,omitempty"`
	// contains filtered or unexported fields
}

https://discord.com/developers/docs/resources/user#user-object

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetAvatarData

func (x *User) GetAvatarData() string

func (*User) GetBot

func (x *User) GetBot() bool

func (*User) GetDiscriminator

func (x *User) GetDiscriminator() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFlags

func (x *User) GetFlags() int32

func (*User) GetId

func (x *User) GetId() string

func (*User) GetLocale

func (x *User) GetLocale() string

func (*User) GetMfaEnabled

func (x *User) GetMfaEnabled() bool

func (*User) GetPremiumType

func (x *User) GetPremiumType() int32

func (*User) GetPublicType

func (x *User) GetPublicType() int32

func (*User) GetSystem

func (x *User) GetSystem() bool

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) GetVerified

func (x *User) GetVerified() bool

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserGuild

type UserGuild struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Icon        string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
	Owner       bool   `protobuf:"varint,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Permissions int32  `protobuf:"varint,5,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// Custom additional fields
	Attached bool `protobuf:"varint,6,opt,name=attached,proto3" json:"attached,omitempty"`
	// contains filtered or unexported fields
}

https://pkg.go.dev/github.com/bwmarrin/discordgo?tab=doc#UserGuild

func (*UserGuild) Descriptor deprecated

func (*UserGuild) Descriptor() ([]byte, []int)

Deprecated: Use UserGuild.ProtoReflect.Descriptor instead.

func (*UserGuild) GetAttached

func (x *UserGuild) GetAttached() bool

func (*UserGuild) GetIcon

func (x *UserGuild) GetIcon() string

func (*UserGuild) GetId

func (x *UserGuild) GetId() string

func (*UserGuild) GetName

func (x *UserGuild) GetName() string

func (*UserGuild) GetOwner

func (x *UserGuild) GetOwner() bool

func (*UserGuild) GetPermissions

func (x *UserGuild) GetPermissions() int32

func (*UserGuild) ProtoMessage

func (*UserGuild) ProtoMessage()

func (*UserGuild) ProtoReflect

func (x *UserGuild) ProtoReflect() protoreflect.Message

func (*UserGuild) Reset

func (x *UserGuild) Reset()

func (*UserGuild) String

func (x *UserGuild) String() string

Jump to

Keyboard shortcuts

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