discord

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdditionalContentTypeToString

func AdditionalContentTypeToString(Type AdditionalContentType) string

func Alloc

func Alloc(Size uintptr) unsafe.Pointer

func CallErrorToString

func CallErrorToString(Type CallError) string

func CallStatusToString

func CallStatusToString(Type CallStatus) string

func ClientErrorToString

func ClientErrorToString(Type ClientError) string

func ClientGetDefaultAudioDeviceId

func ClientGetDefaultAudioDeviceId() string

func ClientGetDefaultCommunicationScopes

func ClientGetDefaultCommunicationScopes() string

func ClientGetDefaultPresenceScopes

func ClientGetDefaultPresenceScopes() string

func ClientGetVersionHash

func ClientGetVersionHash() string

func ClientGetVersionMajor

func ClientGetVersionMajor() int32

func ClientGetVersionMinor

func ClientGetVersionMinor() int32

func ClientGetVersionPatch

func ClientGetVersionPatch() int32

func ClientStatusToString

func ClientStatusToString(Type ClientStatus) string

func ClientThreadToString

func ClientThreadToString(Type ClientThread) string

func Free

func Free(Ptr unsafe.Pointer)

func FreeProperties

func FreeProperties(Props Properties)

func ResetCallbacks

func ResetCallbacks()

func RunCallbacks

func RunCallbacks()

func SetFreeThreaded

func SetFreeThreaded()

func UInt64SpanToSlice

func UInt64SpanToSlice(s UInt64Span) []uint64

func UserHandleAvatarTypeToString

func UserHandleAvatarTypeToString(Type UserHandleAvatarType) string

Types

type Activity

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

func NewActivity

func NewActivity() *Activity

func (*Activity) AddButton

func (self *Activity) AddButton(Button *ActivityButton)

func (*Activity) ApplicationId

func (self *Activity) ApplicationId() (uint64, bool)

func (*Activity) Assets

func (self *Activity) Assets() (ActivityAssets, bool)

func (*Activity) Clone

func (self *Activity) Clone(Arg0 *Activity)

func (*Activity) Details

func (self *Activity) Details() (string, bool)

func (*Activity) DetailsUrl

func (self *Activity) DetailsUrl() (string, bool)

func (*Activity) Drop

func (self *Activity) Drop()

func (*Activity) Equals

func (self *Activity) Equals(Other *Activity) bool

func (*Activity) GetButtons

func (self *Activity) GetButtons() []ActivityButton

func (*Activity) Init

func (self *Activity) Init()

func (*Activity) Name

func (self *Activity) Name() string

func (*Activity) ParentApplicationId

func (self *Activity) ParentApplicationId() (uint64, bool)

func (*Activity) Party

func (self *Activity) Party() (ActivityParty, bool)

func (*Activity) Secrets

func (self *Activity) Secrets() (ActivitySecrets, bool)

func (*Activity) SetApplicationId

func (self *Activity) SetApplicationId(Value *uint64)

func (*Activity) SetAssets

func (self *Activity) SetAssets(Value *ActivityAssets)

func (*Activity) SetDetails

func (self *Activity) SetDetails(Value string)

func (*Activity) SetDetailsUrl

func (self *Activity) SetDetailsUrl(Value string)

func (*Activity) SetName

func (self *Activity) SetName(Value string)

func (*Activity) SetParentApplicationId

func (self *Activity) SetParentApplicationId(Value *uint64)

func (*Activity) SetParty

func (self *Activity) SetParty(Value *ActivityParty)

func (*Activity) SetSecrets

func (self *Activity) SetSecrets(Value *ActivitySecrets)

func (*Activity) SetState

func (self *Activity) SetState(Value string)

func (*Activity) SetStateUrl

func (self *Activity) SetStateUrl(Value string)

func (*Activity) SetStatusDisplayType

func (self *Activity) SetStatusDisplayType(Value *StatusDisplayTypes)

func (*Activity) SetSupportedPlatforms

func (self *Activity) SetSupportedPlatforms(Value ActivityGamePlatforms)

func (*Activity) SetTimestamps

func (self *Activity) SetTimestamps(Value *ActivityTimestamps)

func (*Activity) SetType

func (self *Activity) SetType(Value ActivityTypes)

func (*Activity) State

func (self *Activity) State() (string, bool)

func (*Activity) StateUrl

func (self *Activity) StateUrl() (string, bool)

func (*Activity) StatusDisplayType

func (self *Activity) StatusDisplayType() (StatusDisplayTypes, bool)

func (*Activity) SupportedPlatforms

func (self *Activity) SupportedPlatforms() ActivityGamePlatforms

func (*Activity) Timestamps

func (self *Activity) Timestamps() (ActivityTimestamps, bool)

func (*Activity) Type

func (self *Activity) Type() ActivityTypes

type ActivityActionTypes

type ActivityActionTypes int32
const (
	ActivityActionTypesInvalid     ActivityActionTypes = 0
	ActivityActionTypesJoin        ActivityActionTypes = 1
	ActivityActionTypesJoinRequest ActivityActionTypes = 5
)

type ActivityAssets

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

func NewActivityAssets

func NewActivityAssets() *ActivityAssets

func (*ActivityAssets) Clone

func (self *ActivityAssets) Clone(Arg0 *ActivityAssets)

func (*ActivityAssets) Drop

func (self *ActivityAssets) Drop()

func (*ActivityAssets) Init

func (self *ActivityAssets) Init()

func (*ActivityAssets) InviteCoverImage

func (self *ActivityAssets) InviteCoverImage() (string, bool)

func (*ActivityAssets) LargeImage

func (self *ActivityAssets) LargeImage() (string, bool)

func (*ActivityAssets) LargeText

func (self *ActivityAssets) LargeText() (string, bool)

func (*ActivityAssets) LargeUrl

func (self *ActivityAssets) LargeUrl() (string, bool)

func (*ActivityAssets) SetInviteCoverImage

func (self *ActivityAssets) SetInviteCoverImage(Value string)

func (*ActivityAssets) SetLargeImage

func (self *ActivityAssets) SetLargeImage(Value string)

func (*ActivityAssets) SetLargeText

func (self *ActivityAssets) SetLargeText(Value string)

func (*ActivityAssets) SetLargeUrl

func (self *ActivityAssets) SetLargeUrl(Value string)

func (*ActivityAssets) SetSmallImage

func (self *ActivityAssets) SetSmallImage(Value string)

func (*ActivityAssets) SetSmallText

func (self *ActivityAssets) SetSmallText(Value string)

func (*ActivityAssets) SetSmallUrl

func (self *ActivityAssets) SetSmallUrl(Value string)

func (*ActivityAssets) SmallImage

func (self *ActivityAssets) SmallImage() (string, bool)

func (*ActivityAssets) SmallText

func (self *ActivityAssets) SmallText() (string, bool)

func (*ActivityAssets) SmallUrl

func (self *ActivityAssets) SmallUrl() (string, bool)

type ActivityButton

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

func ActivityButtonSpanToSlice

func ActivityButtonSpanToSlice(s ActivityButtonSpan) []ActivityButton

func NewActivityButton

func NewActivityButton() *ActivityButton

func (*ActivityButton) Clone

func (self *ActivityButton) Clone(Arg0 *ActivityButton)

func (*ActivityButton) Drop

func (self *ActivityButton) Drop()

func (*ActivityButton) Init

func (self *ActivityButton) Init()

func (*ActivityButton) Label

func (self *ActivityButton) Label() string

func (*ActivityButton) SetLabel

func (self *ActivityButton) SetLabel(Value string)

func (*ActivityButton) SetUrl

func (self *ActivityButton) SetUrl(Value string)

func (*ActivityButton) Url

func (self *ActivityButton) Url() string

type ActivityButtonSpan

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

type ActivityGamePlatforms

type ActivityGamePlatforms int32
const (
	ActivityGamePlatformsDesktop  ActivityGamePlatforms = 1
	ActivityGamePlatformsXbox     ActivityGamePlatforms = 2
	ActivityGamePlatformsSamsung  ActivityGamePlatforms = 4
	ActivityGamePlatformsIOS      ActivityGamePlatforms = 8
	ActivityGamePlatformsAndroid  ActivityGamePlatforms = 16
	ActivityGamePlatformsEmbedded ActivityGamePlatforms = 32
	ActivityGamePlatformsPS4      ActivityGamePlatforms = 64
	ActivityGamePlatformsPS5      ActivityGamePlatforms = 128
)

type ActivityInvite

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

func NewActivityInvite

func NewActivityInvite() *ActivityInvite

func (*ActivityInvite) ApplicationId

func (self *ActivityInvite) ApplicationId() uint64

func (*ActivityInvite) ChannelId

func (self *ActivityInvite) ChannelId() uint64

func (*ActivityInvite) Clone

func (self *ActivityInvite) Clone(Rhs *ActivityInvite)

func (*ActivityInvite) Drop

func (self *ActivityInvite) Drop()

func (*ActivityInvite) Init

func (self *ActivityInvite) Init()

func (*ActivityInvite) IsValid

func (self *ActivityInvite) IsValid() bool

func (*ActivityInvite) MessageId

func (self *ActivityInvite) MessageId() uint64

func (*ActivityInvite) ParentApplicationId

func (self *ActivityInvite) ParentApplicationId() uint64

func (*ActivityInvite) PartyId

func (self *ActivityInvite) PartyId() string

func (*ActivityInvite) SenderId

func (self *ActivityInvite) SenderId() uint64

func (*ActivityInvite) SessionId

func (self *ActivityInvite) SessionId() string

func (*ActivityInvite) SetApplicationId

func (self *ActivityInvite) SetApplicationId(Value uint64)

func (*ActivityInvite) SetChannelId

func (self *ActivityInvite) SetChannelId(Value uint64)

func (*ActivityInvite) SetIsValid

func (self *ActivityInvite) SetIsValid(Value bool)

func (*ActivityInvite) SetMessageId

func (self *ActivityInvite) SetMessageId(Value uint64)

func (*ActivityInvite) SetParentApplicationId

func (self *ActivityInvite) SetParentApplicationId(Value uint64)

func (*ActivityInvite) SetPartyId

func (self *ActivityInvite) SetPartyId(Value string)

func (*ActivityInvite) SetSenderId

func (self *ActivityInvite) SetSenderId(Value uint64)

func (*ActivityInvite) SetSessionId

func (self *ActivityInvite) SetSessionId(Value string)

func (*ActivityInvite) SetType

func (self *ActivityInvite) SetType(Value ActivityActionTypes)

func (*ActivityInvite) Type

func (self *ActivityInvite) Type() ActivityActionTypes

type ActivityParty

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

func NewActivityParty

func NewActivityParty() *ActivityParty

func (*ActivityParty) Clone

func (self *ActivityParty) Clone(Arg0 *ActivityParty)

func (*ActivityParty) CurrentSize

func (self *ActivityParty) CurrentSize() int32

func (*ActivityParty) Drop

func (self *ActivityParty) Drop()

func (*ActivityParty) Id

func (self *ActivityParty) Id() string

func (*ActivityParty) Init

func (self *ActivityParty) Init()

func (*ActivityParty) MaxSize

func (self *ActivityParty) MaxSize() int32

func (*ActivityParty) Privacy

func (self *ActivityParty) Privacy() ActivityPartyPrivacy

func (*ActivityParty) SetCurrentSize

func (self *ActivityParty) SetCurrentSize(Value int32)

func (*ActivityParty) SetId

func (self *ActivityParty) SetId(Value string)

func (*ActivityParty) SetMaxSize

func (self *ActivityParty) SetMaxSize(Value int32)

func (*ActivityParty) SetPrivacy

func (self *ActivityParty) SetPrivacy(Value ActivityPartyPrivacy)

type ActivityPartyPrivacy

type ActivityPartyPrivacy int32
const (
	ActivityPartyPrivacyPrivate ActivityPartyPrivacy = 0
	ActivityPartyPrivacyPublic  ActivityPartyPrivacy = 1
)

type ActivitySecrets

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

func NewActivitySecrets

func NewActivitySecrets() *ActivitySecrets

func (*ActivitySecrets) Clone

func (self *ActivitySecrets) Clone(Arg0 *ActivitySecrets)

func (*ActivitySecrets) Drop

func (self *ActivitySecrets) Drop()

func (*ActivitySecrets) Init

func (self *ActivitySecrets) Init()

func (*ActivitySecrets) Join

func (self *ActivitySecrets) Join() string

func (*ActivitySecrets) SetJoin

func (self *ActivitySecrets) SetJoin(Value string)

type ActivityTimestamps

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

func NewActivityTimestamps

func NewActivityTimestamps() *ActivityTimestamps

func (*ActivityTimestamps) Clone

func (self *ActivityTimestamps) Clone(Arg0 *ActivityTimestamps)

func (*ActivityTimestamps) Drop

func (self *ActivityTimestamps) Drop()

func (*ActivityTimestamps) End

func (self *ActivityTimestamps) End() uint64

func (*ActivityTimestamps) Init

func (self *ActivityTimestamps) Init()

func (*ActivityTimestamps) SetEnd

func (self *ActivityTimestamps) SetEnd(Value uint64)

func (*ActivityTimestamps) SetStart

func (self *ActivityTimestamps) SetStart(Value uint64)

func (*ActivityTimestamps) Start

func (self *ActivityTimestamps) Start() uint64

type ActivityTypes

type ActivityTypes int32
const (
	ActivityTypesPlaying      ActivityTypes = 0
	ActivityTypesStreaming    ActivityTypes = 1
	ActivityTypesListening    ActivityTypes = 2
	ActivityTypesWatching     ActivityTypes = 3
	ActivityTypesCustomStatus ActivityTypes = 4
	ActivityTypesCompeting    ActivityTypes = 5
	ActivityTypesHangStatus   ActivityTypes = 6
)

type AdditionalContent

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

func NewAdditionalContent

func NewAdditionalContent() *AdditionalContent

func (*AdditionalContent) Clone

func (self *AdditionalContent) Clone(Arg0 *AdditionalContent)

func (*AdditionalContent) Count

func (self *AdditionalContent) Count() uint8

func (*AdditionalContent) Drop

func (self *AdditionalContent) Drop()

func (*AdditionalContent) Equals

func (self *AdditionalContent) Equals(Rhs *AdditionalContent) bool

func (*AdditionalContent) Init

func (self *AdditionalContent) Init()

func (*AdditionalContent) SetCount

func (self *AdditionalContent) SetCount(Value uint8)

func (*AdditionalContent) SetTitle

func (self *AdditionalContent) SetTitle(Value string)

func (*AdditionalContent) SetType

func (self *AdditionalContent) SetType(Value AdditionalContentType)

func (*AdditionalContent) Title

func (self *AdditionalContent) Title() (string, bool)

func (*AdditionalContent) Type

type AdditionalContentType

type AdditionalContentType int32
const (
	AdditionalContentTypeOther        AdditionalContentType = 0
	AdditionalContentTypeAttachment   AdditionalContentType = 1
	AdditionalContentTypePoll         AdditionalContentType = 2
	AdditionalContentTypeVoiceMessage AdditionalContentType = 3
	AdditionalContentTypeThread       AdditionalContentType = 4
	AdditionalContentTypeEmbed        AdditionalContentType = 5
	AdditionalContentTypeSticker      AdditionalContentType = 6
)

type Allocator

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

type AudioDevice

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

func AudioDeviceSpanToSlice

func AudioDeviceSpanToSlice(s AudioDeviceSpan) []AudioDevice

func (*AudioDevice) Clone

func (self *AudioDevice) Clone(Arg0 *AudioDevice)

func (*AudioDevice) Drop

func (self *AudioDevice) Drop()

func (*AudioDevice) Equals

func (self *AudioDevice) Equals(Rhs *AudioDevice) bool

func (*AudioDevice) Id

func (self *AudioDevice) Id() string

func (*AudioDevice) IsDefault

func (self *AudioDevice) IsDefault() bool

func (*AudioDevice) Name

func (self *AudioDevice) Name() string

func (*AudioDevice) SetId

func (self *AudioDevice) SetId(Value string)

func (*AudioDevice) SetIsDefault

func (self *AudioDevice) SetIsDefault(Value bool)

func (*AudioDevice) SetName

func (self *AudioDevice) SetName(Value string)

type AudioDeviceSpan

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

type AudioModeType

type AudioModeType int32
const (
	AudioModeTypeMODEUNINIT AudioModeType = 0
	AudioModeTypeMODEVAD    AudioModeType = 1
	AudioModeTypeMODEPTT    AudioModeType = 2
)

type AudioSystem

type AudioSystem int32
const (
	AudioSystemStandard AudioSystem = 0
	AudioSystemGame     AudioSystem = 1
)

type AuthenticationCodeChallengeMethod

type AuthenticationCodeChallengeMethod int32
const (
	AuthenticationCodeChallengeMethodS256 AuthenticationCodeChallengeMethod = 0
)

type AuthenticationExternalAuthType

type AuthenticationExternalAuthType int32
const (
	AuthenticationExternalAuthTypeOIDC                          AuthenticationExternalAuthType = 0
	AuthenticationExternalAuthTypeEpicOnlineServicesAccessToken AuthenticationExternalAuthType = 1
	AuthenticationExternalAuthTypeEpicOnlineServicesIdToken     AuthenticationExternalAuthType = 2
	AuthenticationExternalAuthTypeSteamSessionTicket            AuthenticationExternalAuthType = 3
	AuthenticationExternalAuthTypeUnityServicesIdToken          AuthenticationExternalAuthType = 4
	AuthenticationExternalAuthTypeDiscordBotIssuedAccessToken   AuthenticationExternalAuthType = 5
	AuthenticationExternalAuthTypeAppleIdToken                  AuthenticationExternalAuthType = 6
	AuthenticationExternalAuthTypePlayStationNetworkIdToken     AuthenticationExternalAuthType = 7
)

type AuthorizationArgs

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

func NewAuthorizationArgs

func NewAuthorizationArgs() *AuthorizationArgs

func (*AuthorizationArgs) ClientId

func (self *AuthorizationArgs) ClientId() uint64

func (*AuthorizationArgs) Clone

func (self *AuthorizationArgs) Clone(Arg0 *AuthorizationArgs)

func (*AuthorizationArgs) CodeChallenge

func (self *AuthorizationArgs) CodeChallenge() (AuthorizationCodeChallenge, bool)

func (*AuthorizationArgs) CustomSchemeParam

func (self *AuthorizationArgs) CustomSchemeParam() (string, bool)

func (*AuthorizationArgs) Drop

func (self *AuthorizationArgs) Drop()

func (*AuthorizationArgs) Init

func (self *AuthorizationArgs) Init()

func (*AuthorizationArgs) IntegrationType

func (self *AuthorizationArgs) IntegrationType() (IntegrationType, bool)

func (*AuthorizationArgs) Nonce

func (self *AuthorizationArgs) Nonce() (string, bool)

func (*AuthorizationArgs) Scopes

func (self *AuthorizationArgs) Scopes() string

func (*AuthorizationArgs) SetClientId

func (self *AuthorizationArgs) SetClientId(Value uint64)

func (*AuthorizationArgs) SetCodeChallenge

func (self *AuthorizationArgs) SetCodeChallenge(Value *AuthorizationCodeChallenge)

func (*AuthorizationArgs) SetCustomSchemeParam

func (self *AuthorizationArgs) SetCustomSchemeParam(Value string)

func (*AuthorizationArgs) SetIntegrationType

func (self *AuthorizationArgs) SetIntegrationType(Value *IntegrationType)

func (*AuthorizationArgs) SetNonce

func (self *AuthorizationArgs) SetNonce(Value string)

func (*AuthorizationArgs) SetScopes

func (self *AuthorizationArgs) SetScopes(Value string)

func (*AuthorizationArgs) SetState

func (self *AuthorizationArgs) SetState(Value string)

func (*AuthorizationArgs) State

func (self *AuthorizationArgs) State() (string, bool)

type AuthorizationCodeChallenge

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

func NewAuthorizationCodeChallenge

func NewAuthorizationCodeChallenge() *AuthorizationCodeChallenge

func (*AuthorizationCodeChallenge) Challenge

func (self *AuthorizationCodeChallenge) Challenge() string

func (*AuthorizationCodeChallenge) Clone

func (*AuthorizationCodeChallenge) Drop

func (self *AuthorizationCodeChallenge) Drop()

func (*AuthorizationCodeChallenge) Init

func (self *AuthorizationCodeChallenge) Init()

func (*AuthorizationCodeChallenge) Method

func (*AuthorizationCodeChallenge) SetChallenge

func (self *AuthorizationCodeChallenge) SetChallenge(Value string)

func (*AuthorizationCodeChallenge) SetMethod

type AuthorizationCodeVerifier

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

func (*AuthorizationCodeVerifier) Challenge

func (*AuthorizationCodeVerifier) Clone

func (*AuthorizationCodeVerifier) Drop

func (self *AuthorizationCodeVerifier) Drop()

func (*AuthorizationCodeVerifier) SetChallenge

func (self *AuthorizationCodeVerifier) SetChallenge(Value *AuthorizationCodeChallenge)

func (*AuthorizationCodeVerifier) SetVerifier

func (self *AuthorizationCodeVerifier) SetVerifier(Value string)

func (*AuthorizationCodeVerifier) Verifier

func (self *AuthorizationCodeVerifier) Verifier() string

type AuthorizationTokenType

type AuthorizationTokenType int32
const (
	AuthorizationTokenTypeUser   AuthorizationTokenType = 0
	AuthorizationTokenTypeBearer AuthorizationTokenType = 1
)

type Call

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

func CallSpanToSlice

func CallSpanToSlice(s CallSpan) []Call

func (*Call) Clone

func (self *Call) Clone(Other *Call)

func (*Call) Drop

func (self *Call) Drop()

func (*Call) GetAudioMode

func (self *Call) GetAudioMode() AudioModeType

func (*Call) GetChannelId

func (self *Call) GetChannelId() uint64

func (*Call) GetGuildId

func (self *Call) GetGuildId() uint64

func (*Call) GetLocalMute

func (self *Call) GetLocalMute(UserId uint64) bool

func (*Call) GetPTTActive

func (self *Call) GetPTTActive() bool

func (*Call) GetPTTReleaseDelay

func (self *Call) GetPTTReleaseDelay() uint32

func (*Call) GetParticipantVolume

func (self *Call) GetParticipantVolume(UserId uint64) float32

func (*Call) GetParticipants

func (self *Call) GetParticipants() []uint64

func (*Call) GetSelfDeaf

func (self *Call) GetSelfDeaf() bool

func (*Call) GetSelfMute

func (self *Call) GetSelfMute() bool

func (*Call) GetStatus

func (self *Call) GetStatus() CallStatus

func (*Call) GetVADThreshold

func (self *Call) GetVADThreshold() VADThresholdSettings

func (*Call) GetVoiceStateHandle

func (self *Call) GetVoiceStateHandle(UserId uint64) (VoiceStateHandle, bool)

func (*Call) SetAudioMode

func (self *Call) SetAudioMode(AudioMode AudioModeType)

func (*Call) SetLocalMute

func (self *Call) SetLocalMute(UserId uint64, Mute bool)

func (*Call) SetOnVoiceStateChangedCallback

func (self *Call) SetOnVoiceStateChangedCallback(Cb CallOnVoiceStateChanged)

func (*Call) SetPTTActive

func (self *Call) SetPTTActive(Active bool)

func (*Call) SetPTTReleaseDelay

func (self *Call) SetPTTReleaseDelay(ReleaseDelayMs uint32)

func (*Call) SetParticipantChangedCallback

func (self *Call) SetParticipantChangedCallback(Cb CallOnParticipantChanged)

func (*Call) SetParticipantVolume

func (self *Call) SetParticipantVolume(UserId uint64, Volume float32)

func (*Call) SetSelfDeaf

func (self *Call) SetSelfDeaf(Deaf bool)

func (*Call) SetSelfMute

func (self *Call) SetSelfMute(Mute bool)

func (*Call) SetSpeakingStatusChangedCallback

func (self *Call) SetSpeakingStatusChangedCallback(Cb CallOnSpeakingStatusChanged)

func (*Call) SetStatusChangedCallback

func (self *Call) SetStatusChangedCallback(Cb CallOnStatusChanged)

func (*Call) SetVADThreshold

func (self *Call) SetVADThreshold(Automatic bool, Threshold float32)

type CallError

type CallError int32
const (
	CallErrorNone                      CallError = 0
	CallErrorSignalingConnectionFailed CallError = 1
	CallErrorSignalingUnexpectedClose  CallError = 2
	CallErrorVoiceConnectionFailed     CallError = 3
	CallErrorJoinTimeout               CallError = 4
	CallErrorForbidden                 CallError = 5
)

type CallInfoHandle

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

func (*CallInfoHandle) ChannelId

func (self *CallInfoHandle) ChannelId() uint64

func (*CallInfoHandle) Clone

func (self *CallInfoHandle) Clone(Other *CallInfoHandle)

func (*CallInfoHandle) Drop

func (self *CallInfoHandle) Drop()

func (*CallInfoHandle) GetParticipants

func (self *CallInfoHandle) GetParticipants() []uint64

func (*CallInfoHandle) GetVoiceStateHandle

func (self *CallInfoHandle) GetVoiceStateHandle(UserId uint64) (VoiceStateHandle, bool)

func (*CallInfoHandle) GuildId

func (self *CallInfoHandle) GuildId() uint64

type CallOnParticipantChanged

type CallOnParticipantChanged func(UserId uint64, Added bool)

type CallOnSpeakingStatusChanged

type CallOnSpeakingStatusChanged func(UserId uint64, IsPlayingSound bool)

type CallOnStatusChanged

type CallOnStatusChanged func(Status CallStatus, Error CallError, ErrorDetail int32)

type CallOnVoiceStateChanged

type CallOnVoiceStateChanged func(UserId uint64)

type CallSpan

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

type CallStatus

type CallStatus int32
const (
	CallStatusDisconnected       CallStatus = 0
	CallStatusJoining            CallStatus = 1
	CallStatusConnecting         CallStatus = 2
	CallStatusSignalingConnected CallStatus = 3
	CallStatusConnected          CallStatus = 4
	CallStatusReconnecting       CallStatus = 5
	CallStatusDisconnecting      CallStatus = 6
)

type ChannelHandle

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

func (*ChannelHandle) Clone

func (self *ChannelHandle) Clone(Other *ChannelHandle)

func (*ChannelHandle) Drop

func (self *ChannelHandle) Drop()

func (*ChannelHandle) Id

func (self *ChannelHandle) Id() uint64

func (*ChannelHandle) Name

func (self *ChannelHandle) Name() string

func (*ChannelHandle) Recipients

func (self *ChannelHandle) Recipients() []uint64

func (*ChannelHandle) Type

func (self *ChannelHandle) Type() ChannelType

type ChannelType

type ChannelType int32
const (
	ChannelTypeGuildText          ChannelType = 0
	ChannelTypeDm                 ChannelType = 1
	ChannelTypeGuildVoice         ChannelType = 2
	ChannelTypeGroupDm            ChannelType = 3
	ChannelTypeGuildCategory      ChannelType = 4
	ChannelTypeGuildNews          ChannelType = 5
	ChannelTypeGuildStore         ChannelType = 6
	ChannelTypeGuildNewsThread    ChannelType = 10
	ChannelTypeGuildPublicThread  ChannelType = 11
	ChannelTypeGuildPrivateThread ChannelType = 12
	ChannelTypeGuildStageVoice    ChannelType = 13
	ChannelTypeGuildDirectory     ChannelType = 14
	ChannelTypeGuildForum         ChannelType = 15
	ChannelTypeGuildMedia         ChannelType = 16
	ChannelTypeLobby              ChannelType = 17
	ChannelTypeEphemeralDm        ChannelType = 18
)

type Client

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

func NewClient

func NewClient() *Client

func (*Client) AbortAuthorize

func (self *Client) AbortAuthorize()

func (*Client) AbortGetTokenFromDevice

func (self *Client) AbortGetTokenFromDevice()

func (*Client) AcceptActivityInvite

func (self *Client) AcceptActivityInvite(Invite *ActivityInvite, Cb ClientAcceptActivityInviteCallback)

func (*Client) AcceptDiscordFriendRequest

func (self *Client) AcceptDiscordFriendRequest(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) AcceptGameFriendRequest

func (self *Client) AcceptGameFriendRequest(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) AddLogCallback

func (self *Client) AddLogCallback(Callback ClientLogCallback, MinSeverity LoggingSeverity)

func (*Client) AddVoiceLogCallback

func (self *Client) AddVoiceLogCallback(Callback ClientLogCallback, MinSeverity LoggingSeverity)

func (*Client) Authorize

func (self *Client) Authorize(Args *AuthorizationArgs, Callback ClientAuthorizationCallback)

func (*Client) BlockUser

func (self *Client) BlockUser(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) CanOpenMessageInDiscord

func (self *Client) CanOpenMessageInDiscord(MessageId uint64) bool

func (*Client) CancelDiscordFriendRequest

func (self *Client) CancelDiscordFriendRequest(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) CancelGameFriendRequest

func (self *Client) CancelGameFriendRequest(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) ClearRichPresence

func (self *Client) ClearRichPresence()

func (*Client) CloseAuthorizeDeviceScreen

func (self *Client) CloseAuthorizeDeviceScreen()

func (*Client) Connect

func (self *Client) Connect()

func (*Client) CreateAuthorizationCodeVerifier

func (self *Client) CreateAuthorizationCodeVerifier() AuthorizationCodeVerifier

func (*Client) CreateOrJoinLobby

func (self *Client) CreateOrJoinLobby(Secret string, Callback ClientCreateOrJoinLobbyCallback)

func (*Client) CreateOrJoinLobbyWithMetadata

func (self *Client) CreateOrJoinLobbyWithMetadata(Secret string, LobbyMetadata Properties, MemberMetadata Properties, Callback ClientCreateOrJoinLobbyCallback)

func (*Client) DeleteUserMessage

func (self *Client) DeleteUserMessage(RecipientId uint64, MessageId uint64, Cb ClientDeleteUserMessageCallback)

func (*Client) Disconnect

func (self *Client) Disconnect()

func (*Client) Drop

func (self *Client) Drop()

func (*Client) EditUserMessage

func (self *Client) EditUserMessage(RecipientId uint64, MessageId uint64, Content string, Cb ClientEditUserMessageCallback)

func (*Client) EndCall

func (self *Client) EndCall(ChannelId uint64, Callback ClientEndCallCallback)

func (*Client) EndCalls

func (self *Client) EndCalls(Callback ClientEndCallsCallback)

func (*Client) ExchangeChildToken

func (self *Client) ExchangeChildToken(ParentApplicationToken string, ChildApplicationId uint64, Callback ClientExchangeChildTokenCallback)

func (*Client) FetchCurrentUser

func (self *Client) FetchCurrentUser(TokenType AuthorizationTokenType, Token string, Callback ClientFetchCurrentUserCallback)

func (*Client) GetApplicationId

func (self *Client) GetApplicationId() uint64

func (*Client) GetCall

func (self *Client) GetCall(ChannelId uint64) (Call, bool)

func (*Client) GetCalls

func (self *Client) GetCalls() []Call

func (*Client) GetChannelHandle

func (self *Client) GetChannelHandle(ChannelId uint64) (ChannelHandle, bool)

func (*Client) GetCurrentInputDevice

func (self *Client) GetCurrentInputDevice(Cb ClientGetCurrentInputDeviceCallback)

func (*Client) GetCurrentOutputDevice

func (self *Client) GetCurrentOutputDevice(Cb ClientGetCurrentOutputDeviceCallback)

func (*Client) GetCurrentUser

func (self *Client) GetCurrentUser() UserHandle

func (*Client) GetCurrentUserV2

func (self *Client) GetCurrentUserV2() (UserHandle, bool)

func (*Client) GetDiscordClientConnectedUser

func (self *Client) GetDiscordClientConnectedUser(ApplicationId uint64, Callback ClientGetDiscordClientConnectedUserCallback)

func (*Client) GetGuildChannels

func (self *Client) GetGuildChannels(GuildId uint64, Cb ClientGetGuildChannelsCallback)

func (*Client) GetInputDevices

func (self *Client) GetInputDevices(Cb ClientGetInputDevicesCallback)

func (*Client) GetInputVolume

func (self *Client) GetInputVolume() float32

func (*Client) GetLobbyHandle

func (self *Client) GetLobbyHandle(LobbyId uint64) (LobbyHandle, bool)

func (*Client) GetLobbyIds

func (self *Client) GetLobbyIds() []uint64

func (*Client) GetLobbyMessagesWithLimit

func (self *Client) GetLobbyMessagesWithLimit(LobbyId uint64, Limit int32, Cb ClientGetLobbyMessagesCallback)

func (*Client) GetMessageHandle

func (self *Client) GetMessageHandle(MessageId uint64) (MessageHandle, bool)

func (*Client) GetOutputDevices

func (self *Client) GetOutputDevices(Cb ClientGetOutputDevicesCallback)

func (*Client) GetOutputVolume

func (self *Client) GetOutputVolume() float32

func (*Client) GetProvisionalToken

func (self *Client) GetProvisionalToken(ApplicationId uint64, ExternalAuthType AuthenticationExternalAuthType, ExternalAuthToken string, Callback ClientTokenExchangeCallback)

func (*Client) GetRelationshipHandle

func (self *Client) GetRelationshipHandle(UserId uint64) RelationshipHandle

func (*Client) GetRelationships

func (self *Client) GetRelationships() []RelationshipHandle

func (*Client) GetRelationshipsByGroup

func (self *Client) GetRelationshipsByGroup(GroupType RelationshipGroupType) []RelationshipHandle

func (*Client) GetSelfDeafAll

func (self *Client) GetSelfDeafAll() bool

func (*Client) GetSelfMuteAll

func (self *Client) GetSelfMuteAll() bool

func (*Client) GetStatus

func (self *Client) GetStatus() ClientStatus

func (*Client) GetToken

func (self *Client) GetToken(ApplicationId uint64, Code string, CodeVerifier string, RedirectUri string, Callback ClientTokenExchangeCallback)

func (*Client) GetTokenFromDevice

func (self *Client) GetTokenFromDevice(Args *DeviceAuthorizationArgs, Callback ClientTokenExchangeCallback)

func (*Client) GetTokenFromDeviceProvisionalMerge

func (self *Client) GetTokenFromDeviceProvisionalMerge(Args *DeviceAuthorizationArgs, ExternalAuthType AuthenticationExternalAuthType, ExternalAuthToken string, Callback ClientTokenExchangeCallback)

func (*Client) GetTokenFromProvisionalMerge

func (self *Client) GetTokenFromProvisionalMerge(ApplicationId uint64, Code string, CodeVerifier string, RedirectUri string, ExternalAuthType AuthenticationExternalAuthType, ExternalAuthToken string, Callback ClientTokenExchangeCallback)

func (*Client) GetUser

func (self *Client) GetUser(UserId uint64) (UserHandle, bool)

func (*Client) GetUserGuilds

func (self *Client) GetUserGuilds(Cb ClientGetUserGuildsCallback)

func (*Client) GetUserMessageSummaries

func (self *Client) GetUserMessageSummaries(Cb ClientUserMessageSummariesCallback)

func (*Client) GetUserMessagesWithLimit

func (self *Client) GetUserMessagesWithLimit(RecipientId uint64, Limit int32, Cb ClientUserMessagesWithLimitCallback)

func (*Client) Init

func (self *Client) Init()

func (*Client) InitWithBases

func (self *Client) InitWithBases(ApiBase string, WebBase string)

func (*Client) InitWithOptions

func (self *Client) InitWithOptions(Options *ClientCreateOptions)

func (*Client) IsAuthenticated

func (self *Client) IsAuthenticated() bool

func (*Client) IsDiscordAppInstalled

func (self *Client) IsDiscordAppInstalled(Callback ClientIsDiscordAppInstalledCallback)

func (*Client) JoinLinkedLobbyGuild

func (self *Client) JoinLinkedLobbyGuild(LobbyId uint64, ProvisionalUserMergeRequiredCallback ClientProvisionalUserMergeRequiredCallback, Callback ClientJoinLinkedLobbyGuildCallback)

func (*Client) LeaveLobby

func (self *Client) LeaveLobby(LobbyId uint64, Callback ClientLeaveLobbyCallback)

func (*Client) LinkChannelToLobby

func (self *Client) LinkChannelToLobby(LobbyId uint64, ChannelId uint64, Callback ClientLinkOrUnlinkChannelCallback)

func (*Client) OpenAuthorizeDeviceScreen

func (self *Client) OpenAuthorizeDeviceScreen(ClientId uint64, UserCode string)

func (*Client) OpenConnectedGamesSettingsInDiscord

func (self *Client) OpenConnectedGamesSettingsInDiscord(Callback ClientOpenConnectedGamesSettingsInDiscordCallback)

func (*Client) OpenMessageInDiscord

func (self *Client) OpenMessageInDiscord(MessageId uint64, ProvisionalUserMergeRequiredCallback ClientProvisionalUserMergeRequiredCallback, Callback ClientOpenMessageInDiscordCallback)

func (*Client) ProvisionalUserMergeCompleted

func (self *Client) ProvisionalUserMergeCompleted(Success bool)

func (*Client) RefreshToken

func (self *Client) RefreshToken(ApplicationId uint64, RefreshToken string, Callback ClientTokenExchangeCallback)

func (*Client) RegisterAuthorizeRequestCallback

func (self *Client) RegisterAuthorizeRequestCallback(Callback ClientAuthorizeRequestCallback)

func (*Client) RegisterLaunchCommand

func (self *Client) RegisterLaunchCommand(ApplicationId uint64, Command string) bool

func (*Client) RegisterLaunchSteamApplication

func (self *Client) RegisterLaunchSteamApplication(ApplicationId uint64, SteamAppId uint32) bool

func (*Client) RejectDiscordFriendRequest

func (self *Client) RejectDiscordFriendRequest(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) RejectGameFriendRequest

func (self *Client) RejectGameFriendRequest(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) RemoveAuthorizeRequestCallback

func (self *Client) RemoveAuthorizeRequestCallback()

func (*Client) RemoveDiscordAndGameFriend

func (self *Client) RemoveDiscordAndGameFriend(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) RemoveGameFriend

func (self *Client) RemoveGameFriend(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) RevokeToken

func (self *Client) RevokeToken(ApplicationId uint64, Token string, Callback ClientRevokeTokenCallback)

func (*Client) SearchFriendsByUsername

func (self *Client) SearchFriendsByUsername(SearchStr string) []UserHandle

func (*Client) SendActivityInvite

func (self *Client) SendActivityInvite(UserId uint64, Content string, Cb ClientSendActivityInviteCallback)

func (*Client) SendActivityJoinRequest

func (self *Client) SendActivityJoinRequest(UserId uint64, Cb ClientSendActivityInviteCallback)

func (*Client) SendActivityJoinRequestReply

func (self *Client) SendActivityJoinRequestReply(Invite *ActivityInvite, Cb ClientSendActivityInviteCallback)

func (*Client) SendDiscordFriendRequest

func (self *Client) SendDiscordFriendRequest(Username string, Cb ClientSendFriendRequestCallback)

func (*Client) SendDiscordFriendRequestById

func (self *Client) SendDiscordFriendRequestById(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) SendGameFriendRequest

func (self *Client) SendGameFriendRequest(Username string, Cb ClientSendFriendRequestCallback)

func (*Client) SendGameFriendRequestById

func (self *Client) SendGameFriendRequestById(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) SendLobbyMessage

func (self *Client) SendLobbyMessage(LobbyId uint64, Content string, Cb ClientSendUserMessageCallback)

func (*Client) SendLobbyMessageWithMetadata

func (self *Client) SendLobbyMessageWithMetadata(LobbyId uint64, Content string, Metadata Properties, Cb ClientSendUserMessageCallback)

func (*Client) SendUserMessage

func (self *Client) SendUserMessage(RecipientId uint64, Content string, Cb ClientSendUserMessageCallback)

func (*Client) SendUserMessageWithMetadata

func (self *Client) SendUserMessageWithMetadata(RecipientId uint64, Content string, Metadata Properties, Cb ClientSendUserMessageCallback)

func (*Client) SetActivityInviteCreatedCallback

func (self *Client) SetActivityInviteCreatedCallback(Cb ClientActivityInviteCallback)

func (*Client) SetActivityInviteUpdatedCallback

func (self *Client) SetActivityInviteUpdatedCallback(Cb ClientActivityInviteCallback)

func (*Client) SetActivityJoinCallback

func (self *Client) SetActivityJoinCallback(Cb ClientActivityJoinCallback)

func (*Client) SetActivityJoinWithApplicationCallback

func (self *Client) SetActivityJoinWithApplicationCallback(Cb ClientActivityJoinWithApplicationCallback)

func (*Client) SetAecDump

func (self *Client) SetAecDump(On bool)

func (*Client) SetApplicationId

func (self *Client) SetApplicationId(ApplicationId uint64)

func (*Client) SetAuthorizeDeviceScreenClosedCallback

func (self *Client) SetAuthorizeDeviceScreenClosedCallback(Cb ClientAuthorizeDeviceScreenClosedCallback)

func (*Client) SetAutomaticGainControl

func (self *Client) SetAutomaticGainControl(On bool)

func (*Client) SetDeviceChangeCallback

func (self *Client) SetDeviceChangeCallback(Callback ClientDeviceChangeCallback)

func (*Client) SetEchoCancellation

func (self *Client) SetEchoCancellation(On bool)

func (*Client) SetEngineManagedAudioSession

func (self *Client) SetEngineManagedAudioSession(IsEngineManaged bool)

func (*Client) SetGameWindowPid

func (self *Client) SetGameWindowPid(Pid int32)

func (*Client) SetHttpRequestTimeout

func (self *Client) SetHttpRequestTimeout(HttpTimeoutInMilliseconds int32)

func (*Client) SetInputDevice

func (self *Client) SetInputDevice(DeviceId string, Cb ClientSetInputDeviceCallback)

func (*Client) SetInputVolume

func (self *Client) SetInputVolume(InputVolume float32)

func (*Client) SetLobbyCreatedCallback

func (self *Client) SetLobbyCreatedCallback(Cb ClientLobbyCreatedCallback)

func (*Client) SetLobbyDeletedCallback

func (self *Client) SetLobbyDeletedCallback(Cb ClientLobbyDeletedCallback)

func (*Client) SetLobbyMemberAddedCallback

func (self *Client) SetLobbyMemberAddedCallback(Cb ClientLobbyMemberAddedCallback)

func (*Client) SetLobbyMemberRemovedCallback

func (self *Client) SetLobbyMemberRemovedCallback(Cb ClientLobbyMemberRemovedCallback)

func (*Client) SetLobbyMemberUpdatedCallback

func (self *Client) SetLobbyMemberUpdatedCallback(Cb ClientLobbyMemberUpdatedCallback)

func (*Client) SetLobbyUpdatedCallback

func (self *Client) SetLobbyUpdatedCallback(Cb ClientLobbyUpdatedCallback)

func (*Client) SetLogDir

func (self *Client) SetLogDir(Path string, MinSeverity LoggingSeverity) bool

func (*Client) SetMessageCreatedCallback

func (self *Client) SetMessageCreatedCallback(Cb ClientMessageCreatedCallback)

func (*Client) SetMessageDeletedCallback

func (self *Client) SetMessageDeletedCallback(Cb ClientMessageDeletedCallback)

func (*Client) SetMessageUpdatedCallback

func (self *Client) SetMessageUpdatedCallback(Cb ClientMessageUpdatedCallback)

func (*Client) SetNoAudioInputCallback

func (self *Client) SetNoAudioInputCallback(Callback ClientNoAudioInputCallback)

func (*Client) SetNoAudioInputThreshold

func (self *Client) SetNoAudioInputThreshold(DBFSThreshold float32)

func (*Client) SetNoiseCancellation

func (self *Client) SetNoiseCancellation(On bool)

func (*Client) SetNoiseSuppression

func (self *Client) SetNoiseSuppression(On bool)

func (*Client) SetOnlineStatus

func (self *Client) SetOnlineStatus(Status StatusType, Callback ClientUpdateStatusCallback)

func (*Client) SetOpusHardwareCoding

func (self *Client) SetOpusHardwareCoding(Encode bool, Decode bool)

func (*Client) SetOutputDevice

func (self *Client) SetOutputDevice(DeviceId string, Cb ClientSetOutputDeviceCallback)

func (*Client) SetOutputVolume

func (self *Client) SetOutputVolume(OutputVolume float32)

func (*Client) SetRelationshipCreatedCallback

func (self *Client) SetRelationshipCreatedCallback(Cb ClientRelationshipCreatedCallback)

func (*Client) SetRelationshipDeletedCallback

func (self *Client) SetRelationshipDeletedCallback(Cb ClientRelationshipDeletedCallback)

func (*Client) SetRelationshipGroupsUpdatedCallback

func (self *Client) SetRelationshipGroupsUpdatedCallback(Cb ClientRelationshipGroupsUpdatedCallback)

func (*Client) SetSelfDeafAll

func (self *Client) SetSelfDeafAll(Deaf bool)

func (*Client) SetSelfMuteAll

func (self *Client) SetSelfMuteAll(Mute bool)

func (*Client) SetShowingChat

func (self *Client) SetShowingChat(ShowingChat bool)

func (*Client) SetSpeakerMode

func (self *Client) SetSpeakerMode(SpeakerMode bool) bool

func (*Client) SetStatusChangedCallback

func (self *Client) SetStatusChangedCallback(Cb ClientOnStatusChanged)

func (*Client) SetThreadPriority

func (self *Client) SetThreadPriority(Thread ClientThread, Priority int32)

func (*Client) SetTokenExpirationCallback

func (self *Client) SetTokenExpirationCallback(Callback ClientTokenExpirationCallback)

func (*Client) SetUserUpdatedCallback

func (self *Client) SetUserUpdatedCallback(Cb ClientUserUpdatedCallback)

func (*Client) SetVoiceLogDir

func (self *Client) SetVoiceLogDir(Path string, MinSeverity LoggingSeverity)

func (*Client) SetVoiceParticipantChangedCallback

func (self *Client) SetVoiceParticipantChangedCallback(Cb ClientVoiceParticipantChangedCallback)

func (*Client) ShowAudioRoutePicker

func (self *Client) ShowAudioRoutePicker() bool

func (*Client) StartCall

func (self *Client) StartCall(ChannelId uint64) (Call, bool)

func (*Client) StartCallWithAudioCallbacks

func (self *Client) StartCallWithAudioCallbacks(LobbyId uint64, ReceivedCb ClientUserAudioReceivedCallback, CapturedCb ClientUserAudioCapturedCallback) (Call, bool)

func (*Client) UnblockUser

func (self *Client) UnblockUser(UserId uint64, Cb ClientUpdateRelationshipCallback)

func (*Client) UnlinkChannelFromLobby

func (self *Client) UnlinkChannelFromLobby(LobbyId uint64, Callback ClientLinkOrUnlinkChannelCallback)

func (*Client) UnmergeIntoProvisionalAccount

func (self *Client) UnmergeIntoProvisionalAccount(ApplicationId uint64, ExternalAuthType AuthenticationExternalAuthType, ExternalAuthToken string, Callback ClientUnmergeIntoProvisionalAccountCallback)

func (*Client) UpdateProvisionalAccountDisplayName

func (self *Client) UpdateProvisionalAccountDisplayName(Name string, Callback ClientUpdateProvisionalAccountDisplayNameCallback)

func (*Client) UpdateRichPresence

func (self *Client) UpdateRichPresence(Activity *Activity, Cb ClientUpdateRichPresenceCallback)

func (*Client) UpdateToken

func (self *Client) UpdateToken(TokenType AuthorizationTokenType, Token string, Callback ClientUpdateTokenCallback)

type ClientAcceptActivityInviteCallback

type ClientAcceptActivityInviteCallback func(Result *ClientResult, JoinSecret string)

type ClientActivityInviteCallback

type ClientActivityInviteCallback func(Invite *ActivityInvite)

type ClientActivityJoinCallback

type ClientActivityJoinCallback func(JoinSecret string)

type ClientActivityJoinWithApplicationCallback

type ClientActivityJoinWithApplicationCallback func(ApplicationId uint64, JoinSecret string)

type ClientAuthorizationCallback

type ClientAuthorizationCallback func(Result *ClientResult, Code string, RedirectUri string)

type ClientAuthorizeDeviceScreenClosedCallback

type ClientAuthorizeDeviceScreenClosedCallback func()

type ClientAuthorizeRequestCallback

type ClientAuthorizeRequestCallback func()

type ClientCreateOptions

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

func NewClientCreateOptions

func NewClientCreateOptions() *ClientCreateOptions

func (*ClientCreateOptions) ApiBase

func (self *ClientCreateOptions) ApiBase() string

func (*ClientCreateOptions) Clone

func (self *ClientCreateOptions) Clone(Arg0 *ClientCreateOptions)

func (*ClientCreateOptions) CpuAffinityMask

func (self *ClientCreateOptions) CpuAffinityMask() (uint64, bool)

func (*ClientCreateOptions) Drop

func (self *ClientCreateOptions) Drop()

func (*ClientCreateOptions) ExperimentalAndroidPreventCommsForBluetooth

func (self *ClientCreateOptions) ExperimentalAndroidPreventCommsForBluetooth() bool

func (*ClientCreateOptions) ExperimentalAudioSystem

func (self *ClientCreateOptions) ExperimentalAudioSystem() AudioSystem

func (*ClientCreateOptions) Init

func (self *ClientCreateOptions) Init()

func (*ClientCreateOptions) SetApiBase

func (self *ClientCreateOptions) SetApiBase(Value string)

func (*ClientCreateOptions) SetCpuAffinityMask

func (self *ClientCreateOptions) SetCpuAffinityMask(Value *uint64)

func (*ClientCreateOptions) SetExperimentalAndroidPreventCommsForBluetooth

func (self *ClientCreateOptions) SetExperimentalAndroidPreventCommsForBluetooth(Value bool)

func (*ClientCreateOptions) SetExperimentalAudioSystem

func (self *ClientCreateOptions) SetExperimentalAudioSystem(Value AudioSystem)

func (*ClientCreateOptions) SetWebBase

func (self *ClientCreateOptions) SetWebBase(Value string)

func (*ClientCreateOptions) WebBase

func (self *ClientCreateOptions) WebBase() string

type ClientCreateOrJoinLobbyCallback

type ClientCreateOrJoinLobbyCallback func(Result *ClientResult, LobbyId uint64)

type ClientDeleteUserMessageCallback

type ClientDeleteUserMessageCallback func(Result *ClientResult)

type ClientDeviceChangeCallback

type ClientDeviceChangeCallback func(InputDevices []AudioDevice, OutputDevices []AudioDevice)

type ClientEditUserMessageCallback

type ClientEditUserMessageCallback func(Result *ClientResult)

type ClientEndCallCallback

type ClientEndCallCallback func()

type ClientEndCallsCallback

type ClientEndCallsCallback func()

type ClientError

type ClientError int32
const (
	ClientErrorNone               ClientError = 0
	ClientErrorConnectionFailed   ClientError = 1
	ClientErrorUnexpectedClose    ClientError = 2
	ClientErrorConnectionCanceled ClientError = 3
)

type ClientExchangeChildTokenCallback

type ClientExchangeChildTokenCallback func(Result *ClientResult, AccessToken string, TokenType AuthorizationTokenType, ExpiresIn int32, Scopes string)

type ClientFetchCurrentUserCallback

type ClientFetchCurrentUserCallback func(Result *ClientResult, Id uint64, Name string)

type ClientGetCurrentInputDeviceCallback

type ClientGetCurrentInputDeviceCallback func(Device *AudioDevice)

type ClientGetCurrentOutputDeviceCallback

type ClientGetCurrentOutputDeviceCallback func(Device *AudioDevice)

type ClientGetDiscordClientConnectedUserCallback

type ClientGetDiscordClientConnectedUserCallback func(Result *ClientResult, User *UserHandle)

type ClientGetGuildChannelsCallback

type ClientGetGuildChannelsCallback func(Result *ClientResult, GuildChannels []GuildChannel)

type ClientGetInputDevicesCallback

type ClientGetInputDevicesCallback func(Devices []AudioDevice)

type ClientGetLobbyMessagesCallback

type ClientGetLobbyMessagesCallback func(Result *ClientResult, Messages []MessageHandle)

type ClientGetOutputDevicesCallback

type ClientGetOutputDevicesCallback func(Devices []AudioDevice)

type ClientGetUserGuildsCallback

type ClientGetUserGuildsCallback func(Result *ClientResult, Guilds []GuildMinimal)

type ClientIsDiscordAppInstalledCallback

type ClientIsDiscordAppInstalledCallback func(Installed bool)

type ClientJoinLinkedLobbyGuildCallback

type ClientJoinLinkedLobbyGuildCallback func(Result *ClientResult, InviteUrl string)

type ClientLeaveLobbyCallback

type ClientLeaveLobbyCallback func(Result *ClientResult)

type ClientLinkOrUnlinkChannelCallback

type ClientLinkOrUnlinkChannelCallback func(Result *ClientResult)

type ClientLobbyCreatedCallback

type ClientLobbyCreatedCallback func(LobbyId uint64)

type ClientLobbyDeletedCallback

type ClientLobbyDeletedCallback func(LobbyId uint64)

type ClientLobbyMemberAddedCallback

type ClientLobbyMemberAddedCallback func(LobbyId uint64, MemberId uint64)

type ClientLobbyMemberRemovedCallback

type ClientLobbyMemberRemovedCallback func(LobbyId uint64, MemberId uint64)

type ClientLobbyMemberUpdatedCallback

type ClientLobbyMemberUpdatedCallback func(LobbyId uint64, MemberId uint64)

type ClientLobbyUpdatedCallback

type ClientLobbyUpdatedCallback func(LobbyId uint64)

type ClientLogCallback

type ClientLogCallback func(Message string, Severity LoggingSeverity)

type ClientMessageCreatedCallback

type ClientMessageCreatedCallback func(MessageId uint64)

type ClientMessageDeletedCallback

type ClientMessageDeletedCallback func(MessageId uint64, ChannelId uint64)

type ClientMessageUpdatedCallback

type ClientMessageUpdatedCallback func(MessageId uint64)

type ClientNoAudioInputCallback

type ClientNoAudioInputCallback func(InputDetected bool)

type ClientOnStatusChanged

type ClientOnStatusChanged func(Status ClientStatus, Error ClientError, ErrorDetail int32)

type ClientOpenConnectedGamesSettingsInDiscordCallback

type ClientOpenConnectedGamesSettingsInDiscordCallback func(Result *ClientResult)

type ClientOpenMessageInDiscordCallback

type ClientOpenMessageInDiscordCallback func(Result *ClientResult)

type ClientProvisionalUserMergeRequiredCallback

type ClientProvisionalUserMergeRequiredCallback func()

type ClientRelationshipCreatedCallback

type ClientRelationshipCreatedCallback func(UserId uint64, IsDiscordRelationshipUpdate bool)

type ClientRelationshipDeletedCallback

type ClientRelationshipDeletedCallback func(UserId uint64, IsDiscordRelationshipUpdate bool)

type ClientRelationshipGroupsUpdatedCallback

type ClientRelationshipGroupsUpdatedCallback func(UserId uint64)

type ClientResult

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

func (*ClientResult) Clone

func (self *ClientResult) Clone(Arg0 *ClientResult)

func (*ClientResult) Drop

func (self *ClientResult) Drop()

func (*ClientResult) Error

func (self *ClientResult) Error() string

func (*ClientResult) ErrorCode

func (self *ClientResult) ErrorCode() int32

func (*ClientResult) ResponseBody

func (self *ClientResult) ResponseBody() string

func (*ClientResult) RetryAfter

func (self *ClientResult) RetryAfter() float32

func (*ClientResult) Retryable

func (self *ClientResult) Retryable() bool

func (*ClientResult) SetError

func (self *ClientResult) SetError(Value string)

func (*ClientResult) SetErrorCode

func (self *ClientResult) SetErrorCode(Value int32)

func (*ClientResult) SetResponseBody

func (self *ClientResult) SetResponseBody(Value string)

func (*ClientResult) SetRetryAfter

func (self *ClientResult) SetRetryAfter(Value float32)

func (*ClientResult) SetRetryable

func (self *ClientResult) SetRetryable(Value bool)

func (*ClientResult) SetStatus

func (self *ClientResult) SetStatus(Value HttpStatusCode)

func (*ClientResult) SetSuccessful

func (self *ClientResult) SetSuccessful(Value bool)

func (*ClientResult) SetType

func (self *ClientResult) SetType(Value ErrorType)

func (*ClientResult) Status

func (self *ClientResult) Status() HttpStatusCode

func (*ClientResult) Successful

func (self *ClientResult) Successful() bool

func (*ClientResult) ToString

func (self *ClientResult) ToString() string

func (*ClientResult) Type

func (self *ClientResult) Type() ErrorType

type ClientRevokeTokenCallback

type ClientRevokeTokenCallback func(Result *ClientResult)

type ClientSendActivityInviteCallback

type ClientSendActivityInviteCallback func(Result *ClientResult)

type ClientSendFriendRequestCallback

type ClientSendFriendRequestCallback func(Result *ClientResult)

type ClientSendUserMessageCallback

type ClientSendUserMessageCallback func(Result *ClientResult, MessageId uint64)

type ClientSetInputDeviceCallback

type ClientSetInputDeviceCallback func(Result *ClientResult)

type ClientSetOutputDeviceCallback

type ClientSetOutputDeviceCallback func(Result *ClientResult)

type ClientStatus

type ClientStatus int32
const (
	ClientStatusDisconnected  ClientStatus = 0
	ClientStatusConnecting    ClientStatus = 1
	ClientStatusConnected     ClientStatus = 2
	ClientStatusReady         ClientStatus = 3
	ClientStatusReconnecting  ClientStatus = 4
	ClientStatusDisconnecting ClientStatus = 5
	ClientStatusHttpWait      ClientStatus = 6
)

type ClientThread

type ClientThread int32
const (
	ClientThreadClient  ClientThread = 0
	ClientThreadVoice   ClientThread = 1
	ClientThreadNetwork ClientThread = 2
)

type ClientTokenExchangeCallback

type ClientTokenExchangeCallback func(Result *ClientResult, AccessToken string, RefreshToken string, TokenType AuthorizationTokenType, ExpiresIn int32, Scopes string)

type ClientTokenExpirationCallback

type ClientTokenExpirationCallback func()

type ClientUnmergeIntoProvisionalAccountCallback

type ClientUnmergeIntoProvisionalAccountCallback func(Result *ClientResult)

type ClientUpdateProvisionalAccountDisplayNameCallback

type ClientUpdateProvisionalAccountDisplayNameCallback func(Result *ClientResult)

type ClientUpdateRelationshipCallback

type ClientUpdateRelationshipCallback func(Result *ClientResult)

type ClientUpdateRichPresenceCallback

type ClientUpdateRichPresenceCallback func(Result *ClientResult)

type ClientUpdateStatusCallback

type ClientUpdateStatusCallback func(Result *ClientResult)

type ClientUpdateTokenCallback

type ClientUpdateTokenCallback func(Result *ClientResult)

type ClientUserAudioCapturedCallback

type ClientUserAudioCapturedCallback func(Data *int16, SamplesPerChannel uint64, SampleRate int32, Channels uint64)

type ClientUserAudioReceivedCallback

type ClientUserAudioReceivedCallback func(UserId uint64, Data *int16, SamplesPerChannel uint64, SampleRate int32, Channels uint64, OutShouldMute *bool)

type ClientUserMessageSummariesCallback

type ClientUserMessageSummariesCallback func(Result *ClientResult, Summaries []UserMessageSummary)

type ClientUserMessagesWithLimitCallback

type ClientUserMessagesWithLimitCallback func(Result *ClientResult, Messages []MessageHandle)

type ClientUserUpdatedCallback

type ClientUserUpdatedCallback func(UserId uint64)

type ClientVoiceParticipantChangedCallback

type ClientVoiceParticipantChangedCallback func(LobbyId uint64, MemberId uint64, Added bool)

type DeviceAuthorizationArgs

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

func NewDeviceAuthorizationArgs

func NewDeviceAuthorizationArgs() *DeviceAuthorizationArgs

func (*DeviceAuthorizationArgs) ClientId

func (self *DeviceAuthorizationArgs) ClientId() uint64

func (*DeviceAuthorizationArgs) Clone

func (*DeviceAuthorizationArgs) Drop

func (self *DeviceAuthorizationArgs) Drop()

func (*DeviceAuthorizationArgs) Init

func (self *DeviceAuthorizationArgs) Init()

func (*DeviceAuthorizationArgs) Scopes

func (self *DeviceAuthorizationArgs) Scopes() string

func (*DeviceAuthorizationArgs) SetClientId

func (self *DeviceAuthorizationArgs) SetClientId(Value uint64)

func (*DeviceAuthorizationArgs) SetScopes

func (self *DeviceAuthorizationArgs) SetScopes(Value string)

type DisclosureTypes

type DisclosureTypes int32
const (
	DisclosureTypesMessageDataVisibleOnDiscord DisclosureTypes = 3
)

type ErrorType

type ErrorType int32
const (
	ErrorTypeNone                ErrorType = 0
	ErrorTypeNetworkError        ErrorType = 1
	ErrorTypeHTTPError           ErrorType = 2
	ErrorTypeClientNotReady      ErrorType = 3
	ErrorTypeDisabled            ErrorType = 4
	ErrorTypeClientDestroyed     ErrorType = 5
	ErrorTypeValidationError     ErrorType = 6
	ErrorTypeAborted             ErrorType = 7
	ErrorTypeAuthorizationFailed ErrorType = 8
	ErrorTypeRPCError            ErrorType = 9
)

type ExternalIdentityProviderType

type ExternalIdentityProviderType int32
const (
	ExternalIdentityProviderTypeOIDC               ExternalIdentityProviderType = 0
	ExternalIdentityProviderTypeEpicOnlineServices ExternalIdentityProviderType = 1
	ExternalIdentityProviderTypeSteam              ExternalIdentityProviderType = 2
	ExternalIdentityProviderTypeUnity              ExternalIdentityProviderType = 3
	ExternalIdentityProviderTypeDiscordBot         ExternalIdentityProviderType = 4
	ExternalIdentityProviderTypeNone               ExternalIdentityProviderType = 5
	ExternalIdentityProviderTypeUnknown            ExternalIdentityProviderType = 6
)

type FreeFn

type FreeFn func(Ptr unsafe.Pointer)

type GuildChannel

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

func GuildChannelSpanToSlice

func GuildChannelSpanToSlice(s GuildChannelSpan) []GuildChannel

func (*GuildChannel) Clone

func (self *GuildChannel) Clone(Arg0 *GuildChannel)

func (*GuildChannel) Drop

func (self *GuildChannel) Drop()

func (*GuildChannel) Id

func (self *GuildChannel) Id() uint64

func (*GuildChannel) IsLinkable

func (self *GuildChannel) IsLinkable() bool

func (*GuildChannel) IsViewableAndWriteableByAllMembers

func (self *GuildChannel) IsViewableAndWriteableByAllMembers() bool

func (*GuildChannel) LinkedLobby

func (self *GuildChannel) LinkedLobby() (LinkedLobby, bool)

func (*GuildChannel) Name

func (self *GuildChannel) Name() string

func (*GuildChannel) ParentId

func (self *GuildChannel) ParentId() (uint64, bool)

func (*GuildChannel) Position

func (self *GuildChannel) Position() int32

func (*GuildChannel) SetId

func (self *GuildChannel) SetId(Value uint64)

func (*GuildChannel) SetIsLinkable

func (self *GuildChannel) SetIsLinkable(Value bool)

func (*GuildChannel) SetIsViewableAndWriteableByAllMembers

func (self *GuildChannel) SetIsViewableAndWriteableByAllMembers(Value bool)

func (*GuildChannel) SetLinkedLobby

func (self *GuildChannel) SetLinkedLobby(Value *LinkedLobby)

func (*GuildChannel) SetName

func (self *GuildChannel) SetName(Value string)

func (*GuildChannel) SetParentId

func (self *GuildChannel) SetParentId(Value *uint64)

func (*GuildChannel) SetPosition

func (self *GuildChannel) SetPosition(Value int32)

func (*GuildChannel) SetType

func (self *GuildChannel) SetType(Value ChannelType)

func (*GuildChannel) Type

func (self *GuildChannel) Type() ChannelType

type GuildChannelSpan

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

type GuildMinimal

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

func GuildMinimalSpanToSlice

func GuildMinimalSpanToSlice(s GuildMinimalSpan) []GuildMinimal

func (*GuildMinimal) Clone

func (self *GuildMinimal) Clone(Arg0 *GuildMinimal)

func (*GuildMinimal) Drop

func (self *GuildMinimal) Drop()

func (*GuildMinimal) Id

func (self *GuildMinimal) Id() uint64

func (*GuildMinimal) Name

func (self *GuildMinimal) Name() string

func (*GuildMinimal) SetId

func (self *GuildMinimal) SetId(Value uint64)

func (*GuildMinimal) SetName

func (self *GuildMinimal) SetName(Value string)

type GuildMinimalSpan

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

type HttpStatusCode

type HttpStatusCode int32
const (
	HttpStatusCodeNone                         HttpStatusCode = 0
	HttpStatusCodeContinue                     HttpStatusCode = 100
	HttpStatusCodeSwitchingProtocols           HttpStatusCode = 101
	HttpStatusCodeProcessing                   HttpStatusCode = 102
	HttpStatusCodeEarlyHints                   HttpStatusCode = 103
	HttpStatusCodeOk                           HttpStatusCode = 200
	HttpStatusCodeCreated                      HttpStatusCode = 201
	HttpStatusCodeAccepted                     HttpStatusCode = 202
	HttpStatusCodeNonAuthoritativeInfo         HttpStatusCode = 203
	HttpStatusCodeNoContent                    HttpStatusCode = 204
	HttpStatusCodeResetContent                 HttpStatusCode = 205
	HttpStatusCodePartialContent               HttpStatusCode = 206
	HttpStatusCodeMultiStatus                  HttpStatusCode = 207
	HttpStatusCodeAlreadyReported              HttpStatusCode = 208
	HttpStatusCodeImUsed                       HttpStatusCode = 209
	HttpStatusCodeMultipleChoices              HttpStatusCode = 300
	HttpStatusCodeMovedPermanently             HttpStatusCode = 301
	HttpStatusCodeFound                        HttpStatusCode = 302
	HttpStatusCodeSeeOther                     HttpStatusCode = 303
	HttpStatusCodeNotModified                  HttpStatusCode = 304
	HttpStatusCodeTemporaryRedirect            HttpStatusCode = 307
	HttpStatusCodePermanentRedirect            HttpStatusCode = 308
	HttpStatusCodeBadRequest                   HttpStatusCode = 400
	HttpStatusCodeUnauthorized                 HttpStatusCode = 401
	HttpStatusCodePaymentRequired              HttpStatusCode = 402
	HttpStatusCodeForbidden                    HttpStatusCode = 403
	HttpStatusCodeNotFound                     HttpStatusCode = 404
	HttpStatusCodeMethodNotAllowed             HttpStatusCode = 405
	HttpStatusCodeNotAcceptable                HttpStatusCode = 406
	HttpStatusCodeProxyAuthRequired            HttpStatusCode = 407
	HttpStatusCodeRequestTimeout               HttpStatusCode = 408
	HttpStatusCodeConflict                     HttpStatusCode = 409
	HttpStatusCodeGone                         HttpStatusCode = 410
	HttpStatusCodeLengthRequired               HttpStatusCode = 411
	HttpStatusCodePreconditionFailed           HttpStatusCode = 412
	HttpStatusCodePayloadTooLarge              HttpStatusCode = 413
	HttpStatusCodeUriTooLong                   HttpStatusCode = 414
	HttpStatusCodeUnsupportedMediaType         HttpStatusCode = 415
	HttpStatusCodeRangeNotSatisfiable          HttpStatusCode = 416
	HttpStatusCodeExpectationFailed            HttpStatusCode = 417
	HttpStatusCodeMisdirectedRequest           HttpStatusCode = 421
	HttpStatusCodeUnprocessableEntity          HttpStatusCode = 422
	HttpStatusCodeLocked                       HttpStatusCode = 423
	HttpStatusCodeFailedDependency             HttpStatusCode = 424
	HttpStatusCodeTooEarly                     HttpStatusCode = 425
	HttpStatusCodeUpgradeRequired              HttpStatusCode = 426
	HttpStatusCodePreconditionRequired         HttpStatusCode = 428
	HttpStatusCodeTooManyRequests              HttpStatusCode = 429
	HttpStatusCodeRequestHeaderFieldsTooLarge  HttpStatusCode = 431
	HttpStatusCodeInternalServerError          HttpStatusCode = 500
	HttpStatusCodeNotImplemented               HttpStatusCode = 501
	HttpStatusCodeBadGateway                   HttpStatusCode = 502
	HttpStatusCodeServiceUnavailable           HttpStatusCode = 503
	HttpStatusCodeGatewayTimeout               HttpStatusCode = 504
	HttpStatusCodeHttpVersionNotSupported      HttpStatusCode = 505
	HttpStatusCodeVariantAlsoNegotiates        HttpStatusCode = 506
	HttpStatusCodeInsufficientStorage          HttpStatusCode = 507
	HttpStatusCodeLoopDetected                 HttpStatusCode = 508
	HttpStatusCodeNotExtended                  HttpStatusCode = 510
	HttpStatusCodeNetworkAuthorizationRequired HttpStatusCode = 511
)

type IntegrationType

type IntegrationType int32
const (
	IntegrationTypeGuildInstall IntegrationType = 0
	IntegrationTypeUserInstall  IntegrationType = 1
)

type LinkedChannel

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

func (*LinkedChannel) Clone

func (self *LinkedChannel) Clone(Arg0 *LinkedChannel)

func (*LinkedChannel) Drop

func (self *LinkedChannel) Drop()

func (*LinkedChannel) GuildId

func (self *LinkedChannel) GuildId() uint64

func (*LinkedChannel) Id

func (self *LinkedChannel) Id() uint64

func (*LinkedChannel) Name

func (self *LinkedChannel) Name() string

func (*LinkedChannel) SetGuildId

func (self *LinkedChannel) SetGuildId(Value uint64)

func (*LinkedChannel) SetId

func (self *LinkedChannel) SetId(Value uint64)

func (*LinkedChannel) SetName

func (self *LinkedChannel) SetName(Value string)

type LinkedLobby

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

func NewLinkedLobby

func NewLinkedLobby() *LinkedLobby

func (*LinkedLobby) ApplicationId

func (self *LinkedLobby) ApplicationId() uint64

func (*LinkedLobby) Clone

func (self *LinkedLobby) Clone(Arg0 *LinkedLobby)

func (*LinkedLobby) Drop

func (self *LinkedLobby) Drop()

func (*LinkedLobby) Init

func (self *LinkedLobby) Init()

func (*LinkedLobby) LobbyId

func (self *LinkedLobby) LobbyId() uint64

func (*LinkedLobby) SetApplicationId

func (self *LinkedLobby) SetApplicationId(Value uint64)

func (*LinkedLobby) SetLobbyId

func (self *LinkedLobby) SetLobbyId(Value uint64)

type LobbyHandle

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

func (*LobbyHandle) Clone

func (self *LobbyHandle) Clone(Other *LobbyHandle)

func (*LobbyHandle) Drop

func (self *LobbyHandle) Drop()

func (*LobbyHandle) GetCallInfoHandle

func (self *LobbyHandle) GetCallInfoHandle() (CallInfoHandle, bool)

func (*LobbyHandle) GetLobbyMemberHandle

func (self *LobbyHandle) GetLobbyMemberHandle(MemberId uint64) (LobbyMemberHandle, bool)

func (*LobbyHandle) Id

func (self *LobbyHandle) Id() uint64

func (*LobbyHandle) LinkedChannel

func (self *LobbyHandle) LinkedChannel() (LinkedChannel, bool)

func (*LobbyHandle) LobbyMemberIds

func (self *LobbyHandle) LobbyMemberIds() []uint64

func (*LobbyHandle) LobbyMembers

func (self *LobbyHandle) LobbyMembers() []LobbyMemberHandle

func (*LobbyHandle) Metadata

func (self *LobbyHandle) Metadata() Properties

type LobbyMemberHandle

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

func LobbyMemberHandleSpanToSlice

func LobbyMemberHandleSpanToSlice(s LobbyMemberHandleSpan) []LobbyMemberHandle

func (*LobbyMemberHandle) CanLinkLobby

func (self *LobbyMemberHandle) CanLinkLobby() bool

func (*LobbyMemberHandle) Clone

func (self *LobbyMemberHandle) Clone(Other *LobbyMemberHandle)

func (*LobbyMemberHandle) Connected

func (self *LobbyMemberHandle) Connected() bool

func (*LobbyMemberHandle) Drop

func (self *LobbyMemberHandle) Drop()

func (*LobbyMemberHandle) Id

func (self *LobbyMemberHandle) Id() uint64

func (*LobbyMemberHandle) Metadata

func (self *LobbyMemberHandle) Metadata() Properties

func (*LobbyMemberHandle) User

func (self *LobbyMemberHandle) User() (UserHandle, bool)

type LobbyMemberHandleSpan

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

type LoggingSeverity

type LoggingSeverity int32
const (
	LoggingSeverityVerbose LoggingSeverity = 1
	LoggingSeverityInfo    LoggingSeverity = 2
	LoggingSeverityWarning LoggingSeverity = 3
	LoggingSeverityError   LoggingSeverity = 4
	LoggingSeverityNone    LoggingSeverity = 5
)

type MallocFn

type MallocFn func(Size uintptr) unsafe.Pointer

type MessageHandle

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

func MessageHandleSpanToSlice

func MessageHandleSpanToSlice(s MessageHandleSpan) []MessageHandle

func (*MessageHandle) AdditionalContent

func (self *MessageHandle) AdditionalContent() (AdditionalContent, bool)

func (*MessageHandle) ApplicationId

func (self *MessageHandle) ApplicationId() (uint64, bool)

func (*MessageHandle) Author

func (self *MessageHandle) Author() (UserHandle, bool)

func (*MessageHandle) AuthorId

func (self *MessageHandle) AuthorId() uint64

func (*MessageHandle) Channel

func (self *MessageHandle) Channel() (ChannelHandle, bool)

func (*MessageHandle) ChannelId

func (self *MessageHandle) ChannelId() uint64

func (*MessageHandle) Clone

func (self *MessageHandle) Clone(Other *MessageHandle)

func (*MessageHandle) Content

func (self *MessageHandle) Content() string

func (*MessageHandle) DisclosureType

func (self *MessageHandle) DisclosureType() (DisclosureTypes, bool)

func (*MessageHandle) Drop

func (self *MessageHandle) Drop()

func (*MessageHandle) EditedTimestamp

func (self *MessageHandle) EditedTimestamp() uint64

func (*MessageHandle) Id

func (self *MessageHandle) Id() uint64

func (*MessageHandle) Lobby

func (self *MessageHandle) Lobby() (LobbyHandle, bool)

func (*MessageHandle) Metadata

func (self *MessageHandle) Metadata() Properties

func (*MessageHandle) ModerationMetadata

func (self *MessageHandle) ModerationMetadata() Properties

func (*MessageHandle) RawContent

func (self *MessageHandle) RawContent() string

func (*MessageHandle) Recipient

func (self *MessageHandle) Recipient() (UserHandle, bool)

func (*MessageHandle) RecipientId

func (self *MessageHandle) RecipientId() uint64

func (*MessageHandle) SentFromGame

func (self *MessageHandle) SentFromGame() bool

func (*MessageHandle) SentTimestamp

func (self *MessageHandle) SentTimestamp() uint64

type MessageHandleSpan

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

type Properties

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

type RelationshipGroupType

type RelationshipGroupType int32
const (
	RelationshipGroupTypeOnlinePlayingGame RelationshipGroupType = 0
	RelationshipGroupTypeOnlineElsewhere   RelationshipGroupType = 1
	RelationshipGroupTypeOffline           RelationshipGroupType = 2
)

type RelationshipHandle

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

func RelationshipHandleSpanToSlice

func RelationshipHandleSpanToSlice(s RelationshipHandleSpan) []RelationshipHandle

func (*RelationshipHandle) Clone

func (self *RelationshipHandle) Clone(Other *RelationshipHandle)

func (*RelationshipHandle) DiscordRelationshipType

func (self *RelationshipHandle) DiscordRelationshipType() RelationshipType

func (*RelationshipHandle) Drop

func (self *RelationshipHandle) Drop()

func (*RelationshipHandle) GameRelationshipType

func (self *RelationshipHandle) GameRelationshipType() RelationshipType

func (*RelationshipHandle) Id

func (self *RelationshipHandle) Id() uint64

func (*RelationshipHandle) IsSpamRequest

func (self *RelationshipHandle) IsSpamRequest() bool

func (*RelationshipHandle) User

func (self *RelationshipHandle) User() (UserHandle, bool)

type RelationshipHandleSpan

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

type RelationshipType

type RelationshipType int32
const (
	RelationshipTypeNone            RelationshipType = 0
	RelationshipTypeFriend          RelationshipType = 1
	RelationshipTypeBlocked         RelationshipType = 2
	RelationshipTypePendingIncoming RelationshipType = 3
	RelationshipTypePendingOutgoing RelationshipType = 4
	RelationshipTypeImplicit        RelationshipType = 5
	RelationshipTypeSuggestion      RelationshipType = 6
)

type StatusDisplayTypes

type StatusDisplayTypes int32
const (
	StatusDisplayTypesName    StatusDisplayTypes = 0
	StatusDisplayTypesState   StatusDisplayTypes = 1
	StatusDisplayTypesDetails StatusDisplayTypes = 2
)

type StatusType

type StatusType int32
const (
	StatusTypeOnline    StatusType = 0
	StatusTypeOffline   StatusType = 1
	StatusTypeBlocked   StatusType = 2
	StatusTypeIdle      StatusType = 3
	StatusTypeDnd       StatusType = 4
	StatusTypeInvisible StatusType = 5
	StatusTypeStreaming StatusType = 6
	StatusTypeUnknown   StatusType = 7
)

type String

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

type UInt64Span

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

type UserApplicationProfileHandle

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

func (*UserApplicationProfileHandle) AvatarHash

func (self *UserApplicationProfileHandle) AvatarHash() string

func (*UserApplicationProfileHandle) Clone

func (*UserApplicationProfileHandle) Drop

func (self *UserApplicationProfileHandle) Drop()

func (*UserApplicationProfileHandle) Metadata

func (self *UserApplicationProfileHandle) Metadata() string

func (*UserApplicationProfileHandle) ProviderId

func (self *UserApplicationProfileHandle) ProviderId() (string, bool)

func (*UserApplicationProfileHandle) ProviderIssuedUserId

func (self *UserApplicationProfileHandle) ProviderIssuedUserId() string

func (*UserApplicationProfileHandle) ProviderType

func (*UserApplicationProfileHandle) Username

func (self *UserApplicationProfileHandle) Username() string

type UserApplicationProfileHandleSpan

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

type UserHandle

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

func UserHandleSpanToSlice

func UserHandleSpanToSlice(s UserHandleSpan) []UserHandle

func (*UserHandle) Avatar

func (self *UserHandle) Avatar() (string, bool)

func (*UserHandle) AvatarUrl

func (self *UserHandle) AvatarUrl(AnimatedType UserHandleAvatarType, StaticType UserHandleAvatarType) string

func (*UserHandle) Clone

func (self *UserHandle) Clone(Arg0 *UserHandle)

func (*UserHandle) DisplayName

func (self *UserHandle) DisplayName() string

func (*UserHandle) Drop

func (self *UserHandle) Drop()

func (*UserHandle) GameActivity

func (self *UserHandle) GameActivity() (Activity, bool)

func (*UserHandle) GlobalName

func (self *UserHandle) GlobalName() (string, bool)

func (*UserHandle) Id

func (self *UserHandle) Id() uint64

func (*UserHandle) IsProvisional

func (self *UserHandle) IsProvisional() bool

func (*UserHandle) Relationship

func (self *UserHandle) Relationship() RelationshipHandle

func (*UserHandle) Status

func (self *UserHandle) Status() StatusType

func (*UserHandle) UserApplicationProfiles

func (self *UserHandle) UserApplicationProfiles() []UserApplicationProfileHandle

func (*UserHandle) Username

func (self *UserHandle) Username() string

type UserHandleAvatarType

type UserHandleAvatarType int32
const (
	UserHandleAvatarTypeGif  UserHandleAvatarType = 0
	UserHandleAvatarTypeWebp UserHandleAvatarType = 1
	UserHandleAvatarTypePng  UserHandleAvatarType = 2
	UserHandleAvatarTypeJpeg UserHandleAvatarType = 3
)

type UserHandleSpan

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

type UserMessageSummary

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

func UserMessageSummarySpanToSlice

func UserMessageSummarySpanToSlice(s UserMessageSummarySpan) []UserMessageSummary

func (*UserMessageSummary) Clone

func (self *UserMessageSummary) Clone(Arg0 *UserMessageSummary)

func (*UserMessageSummary) Drop

func (self *UserMessageSummary) Drop()

func (*UserMessageSummary) LastMessageId

func (self *UserMessageSummary) LastMessageId() uint64

func (*UserMessageSummary) UserId

func (self *UserMessageSummary) UserId() uint64

type UserMessageSummarySpan

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

type VADThresholdSettings

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

func (*VADThresholdSettings) Automatic

func (self *VADThresholdSettings) Automatic() bool

func (*VADThresholdSettings) Drop

func (self *VADThresholdSettings) Drop()

func (*VADThresholdSettings) SetAutomatic

func (self *VADThresholdSettings) SetAutomatic(Value bool)

func (*VADThresholdSettings) SetVadThreshold

func (self *VADThresholdSettings) SetVadThreshold(Value float32)

func (*VADThresholdSettings) VadThreshold

func (self *VADThresholdSettings) VadThreshold() float32

type VoiceStateHandle

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

func (*VoiceStateHandle) Clone

func (self *VoiceStateHandle) Clone(Other *VoiceStateHandle)

func (*VoiceStateHandle) Drop

func (self *VoiceStateHandle) Drop()

func (*VoiceStateHandle) SelfDeaf

func (self *VoiceStateHandle) SelfDeaf() bool

func (*VoiceStateHandle) SelfMute

func (self *VoiceStateHandle) SelfMute() bool

Directories

Path Synopsis
_examples
sample-1 command
tools
gen command

Jump to

Keyboard shortcuts

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