dota2

package module
v0.0.0-...-0166848 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 13 Imported by: 0

README

Dota2

GoDoc Widget Go Report Card Widget

Introduction

go-dota2 is a DOTA 2 client plugin for go-steam. The intent is to replicate as much of the client functionality as possible.

Also see: the C#/SteamKit Implementation.

Implementation Progress

Complete.

  • GC session state management
  • Player profile fetching / call tracking
  • SOCache tracking / state management
  • Basic chat interaction
  • Lobby tracking / state management
    • Read lobby state correctly
    • Implement normal lobby operations
  • Party tracking / state management
    • Read party and invite state correctly
    • Implement normal party operations
  • Code generation for API
  • Code generation for events

SOCache Mechanism

The caching mechanism makes it easy to watch for changes to common objects, like Lobby, LobbyInvite, Party, PartyInvite.

This mechanism is used everywhere, these objects are not exposed in their own events.

import (
	gcmm "github.com/MrJoshLab/go-dota2/protocol"
	"github.com/MrJoshLab/go-dota2/cso"
)

eventCh, eventCancel, err := dota.GetCache().SubscribeType(cso.Lobby)
if err != nil {
    return err
}

defer eventCancel()

lobbyEvent := <-eventCh
lobby := lobbyEvent.Object.(*gcmm.CSODOTALobby)

Events for the object type are emitted on the eventCh. Be sure to call eventCancel once you are done with the channel to prevent resource leaks.

The cache object also adds interfaces to get and list the current objects in the cache.

Implementation Generation

The base API implementation is generated by the apigen code. Using heuristics, request IDs are matched to response IDs, and events and action-only requests are identified. Some manual tweaking is done in the overrides file.

Next, the API information is used to build a Go code-gen set of implementations around the MakeRequest request tracking mechanism.

This means that ALL of the Dota API will be available in this codebase, although only some of it is documented.

go-steam Dependency

This library depends on go-steam. Currently we are using the FACEIT fork.

Documentation

Index

Constants

View Source
const AppID = 570

AppID is the ID for dota2

Variables

View Source
var ErrNotReady = errors.New("the dota client is not ready to accept requests yet, or has just become unready")

ErrNotReady is returned when the dota client is not ready.

Functions

This section is empty.

Types

type Dota2

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

Dota2 handles the dota game handler.

func New

func New(client *steam.Client, le *logrus.Entry) *Dota2

New builds a new Dota2 handler.

func (*Dota2) AbandonLobby

func (d *Dota2) AbandonLobby()

AbandonLobby abandons a lobby. Request ID: k_EMsgGCAbandonCurrentGame Request type: CMsgAbandonCurrentGame

func (*Dota2) AckPartyReadyCheck

func (d *Dota2) AckPartyReadyCheck(
	readyStatus protocol.EReadyCheckStatus,
)

AckPartyReadyCheck checks for/from a ack party ready. Request ID: k_EMsgPartyReadyCheckAcknowledge Request type: CMsgPartyReadyCheckAcknowledge

func (*Dota2) ApplyGemCombiner

func (d *Dota2) ApplyGemCombiner(
	itemID1 uint64,
	itemID2 uint64,
)

ApplyGemCombiner applys a gem combiner. Request ID: k_EMsgClientToGCApplyGemCombiner Request type: CMsgClientToGCApplyGemCombiner

func (*Dota2) ApplyTeamToLobby

func (d *Dota2) ApplyTeamToLobby(
	teamID uint32,
)

ApplyTeamToLobby applys a team to lobby. Request ID: k_EMsgGCApplyTeamToPracticeLobby Request type: CMsgApplyTeamToPracticeLobby

func (*Dota2) AutographReward

func (d *Dota2) AutographReward(
	ctx context.Context,
	badgeID string,
) (*protocol.CMsgDOTAGameAutographRewardResponse, error)

AutographReward autographs a reward. Request ID: k_EMsgGameAutographReward Response ID: k_EMsgGameAutographRewardResponse Request type: CMsgDOTAGameAutographReward Response type: CMsgDOTAGameAutographRewardResponse

func (*Dota2) CancelFantasyTeamTrade

func (d *Dota2) CancelFantasyTeamTrade(
	ctx context.Context,
	fantasyLeagueID uint32,
	teamIndex1 uint32,
	ownerAccountID2 uint32,
	teamIndex2 uint32,
) (*protocol.CMsgDOTAFantasyTeamTradeCancelResponse, error)

CancelFantasyTeamTrade cancels a fantasy team trade. Request ID: k_EMsgGCFantasyTeamTradeCancelRequest Response ID: k_EMsgGCFantasyTeamTradeCancelResponse Request type: CMsgDOTAFantasyTeamTradeCancelRequest Response type: CMsgDOTAFantasyTeamTradeCancelResponse

func (*Dota2) CancelPartyInvites

func (d *Dota2) CancelPartyInvites(
	invitedSteamids []uint64,
	invitedGroupids []uint64,
)

CancelPartyInvites cancels party invites. Request ID: k_EMsgClientToGCCancelPartyInvites Request type: CMsgDOTACancelGroupInvites

func (*Dota2) CancelWatchGame

func (d *Dota2) CancelWatchGame()

CancelWatchGame cancels a watch game. Request ID: k_EMsgGCCancelWatchGame Request type: CMsgCancelWatchGame

func (*Dota2) CastMatchVote

func (d *Dota2) CastMatchVote(
	matchID uint64,
	vote protocol.DOTAMatchVote,
)

CastMatchVote votes for/from a cast match. Request ID: k_EMsgCastMatchVote Request type: CMsgCastMatchVote

func (*Dota2) ClearSuccessfulReportNotification

func (d *Dota2) ClearSuccessfulReportNotification()

ClearSuccessfulReportNotification is undocumented. Request ID: k_EMsgGCDOTAClearNotifySuccessfulReport Request type: CMsgDOTAClearNotifySuccessfulReport

func (*Dota2) Close

func (d *Dota2) Close()

Close kills any ongoing calls.

func (*Dota2) CloseLobbyBroadcastChannel

func (d *Dota2) CloseLobbyBroadcastChannel(
	channel uint32,
)

CloseLobbyBroadcastChannel closes a lobby broadcast channel. Request ID: k_EMsgGCPracticeLobbyCloseBroadcastChannel Request type: CMsgPracticeLobbyCloseBroadcastChannel

func (*Dota2) CreateBotGame

func (d *Dota2) CreateBotGame(
	req *protocol.CMsgBotGameCreate,
)

CreateBotGame creates a bot game. Request ID: k_EMsgGCBotGameCreate Request type: CMsgBotGameCreate

func (*Dota2) CreateDOTAStaticRecipe

CreateDOTAStaticRecipe creates a dota static recipe. Request ID: k_EMsgClientToGCDOTACreateStaticRecipe Response ID: k_EMsgClientToGCDOTACreateStaticRecipeResponse Request type: CMsgClientToGCCreateStaticRecipe Response type: CMsgClientToGCCreateStaticRecipeResponse

func (*Dota2) CreateFantasyLeague

CreateFantasyLeague creates a fantasy league. Request ID: k_EMsgGCFantasyLeagueCreateRequest Response ID: k_EMsgGCFantasyLeagueCreateResponse Request type: CMsgDOTAFantasyLeagueCreateRequest Response type: CMsgDOTAFantasyLeagueCreateResponse

func (*Dota2) CreateFantasyTeam

func (d *Dota2) CreateFantasyTeam(
	ctx context.Context,
	fantasyLeagueID uint32,
	password string,
	teamName string,
	logo uint64,
	ticketItemID uint64,
) (*protocol.CMsgDOTAFantasyTeamCreateResponse, error)

CreateFantasyTeam creates a fantasy team. Request ID: k_EMsgGCFantasyTeamCreateRequest Response ID: k_EMsgGCFantasyTeamCreateResponse Request type: CMsgDOTAFantasyTeamCreateRequest Response type: CMsgDOTAFantasyTeamCreateResponse

func (*Dota2) CreateGameCustom

func (d *Dota2) CreateGameCustom(
	req *protocol.CMsgCustomGameCreate,
)

CreateGameCustom creates a game custom. Request ID: k_EMsgGCCustomGameCreate Request type: CMsgCustomGameCreate

func (*Dota2) CreateGameEvent

func (d *Dota2) CreateGameEvent(
	req *protocol.CMsgEventGameCreate,
)

CreateGameEvent creates a game event. Request ID: k_EMsgGCEventGameCreate Request type: CMsgEventGameCreate

func (*Dota2) CreateHeroStatue

func (d *Dota2) CreateHeroStatue(
	req *protocol.CMsgClientToGCCreateHeroStatue,
)

CreateHeroStatue creates a hero statue. Request ID: k_EMsgClientToGCCreateHeroStatue Request type: CMsgClientToGCCreateHeroStatue

func (*Dota2) CreateLobby

func (d *Dota2) CreateLobby(details *gcccm.CMsgPracticeLobbySetDetails)

CreateLobby attempts to create a lobby with details.

func (*Dota2) CreatePlayerCardPack

func (d *Dota2) CreatePlayerCardPack(
	ctx context.Context,
	cardDustItemID uint64,
	eventID uint32,
	premiumPack bool,
) (*protocol.CMsgClientToGCCreatePlayerCardPackResponse, error)

CreatePlayerCardPack creates a player card pack. Request ID: k_EMsgClientToGCCreatePlayerCardPack Response ID: k_EMsgClientToGCCreatePlayerCardPackResponse Request type: CMsgClientToGCCreatePlayerCardPack Response type: CMsgClientToGCCreatePlayerCardPackResponse

func (*Dota2) CreateSpectatorLobby

func (d *Dota2) CreateSpectatorLobby(
	details protocol.CMsgSetSpectatorLobbyDetails,
)

CreateSpectatorLobby creates a spectator lobby. Request ID: k_EMsgClientToGCCreateSpectatorLobby Request type: CMsgCreateSpectatorLobby

func (*Dota2) CreateTeam

CreateTeam creates a team. Request ID: k_EMsgGCCreateTeam Response ID: k_EMsgGCCreateTeamResponse Request type: CMsgDOTACreateTeam Response type: CMsgDOTACreateTeamResponse

func (*Dota2) DemotePrivateChatMember

func (d *Dota2) DemotePrivateChatMember(
	privateChatChannelName string,
	demoteAccountID uint32,
)

DemotePrivateChatMember demotes a private chat member. Request ID: k_EMsgClientToGCPrivateChatDemote Request type: CMsgClientToGCPrivateChatDemote

func (*Dota2) DestroyLobby

func (d *Dota2) DestroyLobby(
	ctx context.Context,
) (*protocol.CMsgDOTADestroyLobbyResponse, error)

DestroyLobby destroys a lobby. Request ID: k_EMsgDestroyLobbyRequest Response ID: k_EMsgDestroyLobbyResponse Request type: CMsgDOTADestroyLobbyRequest Response type: CMsgDOTADestroyLobbyResponse

func (*Dota2) EditFantasyTeam

func (d *Dota2) EditFantasyTeam(
	ctx context.Context,
	fantasyLeagueID uint32,
	teamIndex uint32,
	teamName string,
	teamLogo uint64,
) (*protocol.CMsgDOTAEditFantasyTeamResponse, error)

EditFantasyTeam edits a fantasy team. Request ID: k_EMsgGCEditFantasyTeamRequest Response ID: k_EMsgGCEditFantasyTeamResponse Request type: CMsgDOTAEditFantasyTeamRequest Response type: CMsgDOTAEditFantasyTeamResponse

func (*Dota2) EditTeamDetails

EditTeamDetails edits team details. Request ID: k_EMsgGCEditTeamDetails Response ID: k_EMsgGCEditTeamDetailsResponse Request type: CMsgDOTAEditTeamDetails Response type: CMsgDOTAEditTeamDetailsResponse

func (*Dota2) FindFantasyLeague

func (d *Dota2) FindFantasyLeague(
	ctx context.Context,
	fantasyLeagueID uint32,
	password string,
) (*protocol.CMsgDOTAFantasyLeagueFindResponse, error)

FindFantasyLeague finds a fantasy league. Request ID: k_EMsgDOTAFantasyLeagueFindRequest Response ID: k_EMsgDOTAFantasyLeagueFindResponse Request type: CMsgDOTAFantasyLeagueFindRequest Response type: CMsgDOTAFantasyLeagueFindResponse

func (*Dota2) FindTopSourceTVGames

FindTopSourceTVGames finds top source tv games. Request ID: k_EMsgClientToGCFindTopSourceTVGames Response ID: k_EMsgGCToClientFindTopSourceTVGamesResponse Request type: CMsgClientToGCFindTopSourceTVGames Response type: CMsgGCToClientFindTopSourceTVGamesResponse

func (*Dota2) FlipLobbyTeams

func (d *Dota2) FlipLobbyTeams()

FlipLobbyTeams flips lobby teams. Request ID: k_EMsgGCFlipLobbyTeams Request type: CMsgFlipLobbyTeams

func (*Dota2) GetAdditionalEquips

func (d *Dota2) GetAdditionalEquips(
	ctx context.Context,
) (*protocol.CMsgClientToGCGetAdditionalEquipsResponse, error)

GetAdditionalEquips gets additional equips. Request ID: k_EMsgClientToGCGetAdditionalEquips Response ID: k_EMsgClientToGCGetAdditionalEquipsResponse Request type: CMsgClientToGCGetAdditionalEquips Response type: CMsgClientToGCGetAdditionalEquipsResponse

func (*Dota2) GetAllHeroOrder

GetAllHeroOrder gets all hero order. Request ID: k_EMsgClientToGCGetAllHeroOrder Response ID: k_EMsgClientToGCGetAllHeroOrderResponse Request type: CMsgClientToGCGetAllHeroOrder Response type: CMsgClientToGCGetAllHeroOrderResponse

func (*Dota2) GetAllHeroProgress

func (d *Dota2) GetAllHeroProgress(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgClientToGCGetAllHeroProgressResponse, error)

GetAllHeroProgress gets all hero progress. Request ID: k_EMsgClientToGCGetAllHeroProgress Response ID: k_EMsgClientToGCGetAllHeroProgressResponse Request type: CMsgClientToGCGetAllHeroProgress Response type: CMsgClientToGCGetAllHeroProgressResponse

func (*Dota2) GetCache

func (d *Dota2) GetCache() *socache.SOCache

GetCache returns the SO Cache.

func (*Dota2) GetChatMemberCount

func (d *Dota2) GetChatMemberCount(
	ctx context.Context,
	channelName string,
	channelType protocol.DOTAChatChannelTypeT,
) (*protocol.CMsgDOTAChatGetMemberCountResponse, error)

GetChatMemberCount gets a chat member count. Request ID: k_EMsgDOTAChatGetMemberCount Response ID: k_EMsgDOTAChatGetMemberCountResponse Request type: CMsgDOTAChatGetMemberCount Response type: CMsgDOTAChatGetMemberCountResponse

func (*Dota2) GetChatUserList

func (d *Dota2) GetChatUserList(
	ctx context.Context,
	channelID uint64,
) (*protocol.CMsgDOTAChatGetUserListResponse, error)

GetChatUserList gets a chat user list. Request ID: k_EMsgDOTAChatGetUserList Response ID: k_EMsgDOTAChatGetUserListResponse Request type: CMsgDOTAChatGetUserList Response type: CMsgDOTAChatGetUserListResponse

func (*Dota2) GetCrawlCavernClaimedRoomCount

func (d *Dota2) GetCrawlCavernClaimedRoomCount(
	ctx context.Context,
	eventID uint32,
) (*protocol.CMsgClientToGCCavernCrawlGetClaimedRoomCountResponse, error)

GetCrawlCavernClaimedRoomCount gets a crawl cavern claimed room count. Request ID: k_EMsgClientToGCCavernCrawlGetClaimedRoomCount Response ID: k_EMsgClientToGCCavernCrawlGetClaimedRoomCountResponse Request type: CMsgClientToGCCavernCrawlGetClaimedRoomCount Response type: CMsgClientToGCCavernCrawlGetClaimedRoomCountResponse

func (*Dota2) GetEventPoints

func (d *Dota2) GetEventPoints(
	ctx context.Context,
	eventID uint32,
	accountID uint32,
) (*protocol.CMsgDOTAGetEventPointsResponse, error)

GetEventPoints gets event points. Request ID: k_EMsgDOTAGetEventPoints Response ID: k_EMsgDOTAGetEventPointsResponse Request type: CMsgDOTAGetEventPoints Response type: CMsgDOTAGetEventPointsResponse

func (*Dota2) GetFavoritePlayers

func (d *Dota2) GetFavoritePlayers(
	ctx context.Context,
	paginationKey uint64,
	paginationCount int32,
) (*protocol.CMsgGCToClientGetFavoritePlayersResponse, error)

GetFavoritePlayers gets favorite players. Request ID: k_EMsgClientToGCGetFavoritePlayers Response ID: k_EMsgGCToClientGetFavoritePlayersResponse Request type: CMsgClientToGCGetFavoritePlayers Response type: CMsgGCToClientGetFavoritePlayersResponse

func (*Dota2) GetFilteredPlayers

func (d *Dota2) GetFilteredPlayers(
	ctx context.Context,
) (*protocol.CMsgGCToClientGetFilteredPlayersResponse, error)

GetFilteredPlayers gets filtered players. Request ID: k_EMsgClientToGCGetFilteredPlayers Response ID: k_EMsgGCToClientGetFilteredPlayersResponse Request type: CMsgClientToGCGetFilteredPlayers Response type: CMsgGCToClientGetFilteredPlayersResponse

func (*Dota2) GetGiftPermissions

func (d *Dota2) GetGiftPermissions(
	ctx context.Context,
) (*protocol.CMsgClientToGCGetGiftPermissionsResponse, error)

GetGiftPermissions gets gift permissions. Request ID: k_EMsgClientToGCGetGiftPermissions Response ID: k_EMsgClientToGCGetGiftPermissionsResponse Request type: CMsgClientToGCGetGiftPermissions Response type: CMsgClientToGCGetGiftPermissionsResponse

func (*Dota2) GetHeroStandings

func (d *Dota2) GetHeroStandings(
	ctx context.Context,
) (*protocol.CMsgGCGetHeroStandingsResponse, error)

GetHeroStandings gets hero standings. Request ID: k_EMsgGCGetHeroStandings Response ID: k_EMsgGCGetHeroStandingsResponse Request type: CMsgGCGetHeroStandings Response type: CMsgGCGetHeroStandingsResponse

func (*Dota2) GetHeroStatsHistory

func (d *Dota2) GetHeroStatsHistory(
	ctx context.Context,
	heroID uint32,
) (*protocol.CMsgGCGetHeroStatsHistoryResponse, error)

GetHeroStatsHistory gets a hero stats history. Request ID: k_EMsgGCGetHeroStatsHistory Response ID: k_EMsgGCGetHeroStatsHistoryResponse Request type: CMsgGCGetHeroStatsHistory Response type: CMsgGCGetHeroStatsHistoryResponse

func (*Dota2) GetHeroTimedStats

func (d *Dota2) GetHeroTimedStats(
	ctx context.Context,
	heroID uint32,
) (*protocol.CMsgGCGetHeroTimedStatsResponse, error)

GetHeroTimedStats gets hero timed stats. Request ID: k_EMsgGCGetHeroTimedStats Response ID: k_EMsgGCGetHeroTimedStatsResponse Request type: CMsgGCGetHeroTimedStats Response type: CMsgGCGetHeroTimedStatsResponse

func (*Dota2) GetPeriodicResource

func (d *Dota2) GetPeriodicResource(
	ctx context.Context,
	accountID uint32,
	periodicResourceID uint32,
	timestamp uint32,
) (*protocol.CMsgDOTAGetPeriodicResourceResponse, error)

GetPeriodicResource gets a periodic resource. Request ID: k_EMsgDOTAGetPeriodicResource Response ID: k_EMsgDOTAGetPeriodicResourceResponse Request type: CMsgDOTAGetPeriodicResource Response type: CMsgDOTAGetPeriodicResourceResponse

func (*Dota2) GetPlayerCardItemInfo

func (d *Dota2) GetPlayerCardItemInfo(
	ctx context.Context,
	accountID uint32,
	playerCardItemIDs []uint64,
	allForEvent uint32,
) (*protocol.CMsgGCGetPlayerCardItemInfoResponse, error)

GetPlayerCardItemInfo gets a player card item info. Request ID: k_EMsgGCGetPlayerCardItemInfo Response ID: k_EMsgGCGetPlayerCardItemInfoResponse Request type: CMsgGCGetPlayerCardItemInfo Response type: CMsgGCGetPlayerCardItemInfoResponse

func (*Dota2) GetPlayerMatchHistory

GetPlayerMatchHistory gets a player match history. Request ID: k_EMsgDOTAGetPlayerMatchHistory Response ID: k_EMsgDOTAGetPlayerMatchHistoryResponse Request type: CMsgDOTAGetPlayerMatchHistory Response type: CMsgDOTAGetPlayerMatchHistoryResponse

func (*Dota2) GetProfileCard

func (d *Dota2) GetProfileCard(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgDOTAProfileCard, error)

GetProfileCard gets a profile card. Request ID: k_EMsgClientToGCGetProfileCard Response ID: k_EMsgClientToGCGetProfileCardResponse Request type: CMsgClientToGCGetProfileCard Response type: CMsgDOTAProfileCard

func (*Dota2) GetProfileTickets

func (d *Dota2) GetProfileTickets(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgDOTAProfileTickets, error)

GetProfileTickets gets profile tickets. Request ID: k_EMsgClientToGCGetProfileTickets Response ID: k_EMsgClientToGCGetProfileTicketsResponse Request type: CMsgClientToGCGetProfileTickets Response type: CMsgDOTAProfileTickets

func (*Dota2) GetQuestProgress

func (d *Dota2) GetQuestProgress(
	ctx context.Context,
	questIDs []uint32,
) (*protocol.CMsgClientToGCGetQuestProgressResponse, error)

GetQuestProgress gets quest progress. Request ID: k_EMsgClientToGCGetQuestProgress Response ID: k_EMsgClientToGCGetQuestProgressResponse Request type: CMsgClientToGCGetQuestProgress Response type: CMsgClientToGCGetQuestProgressResponse

func (*Dota2) GetTourneyWeekendPlayerStats

func (d *Dota2) GetTourneyWeekendPlayerStats(
	ctx context.Context,
	accountID uint32,
	seasonTrophyID uint32,
) (*protocol.CMsgDOTAWeekendTourneyPlayerStats, error)

GetTourneyWeekendPlayerStats gets tourney weekend player stats. Request ID: k_EMsgClientToGCWeekendTourneyGetPlayerStats Response ID: k_EMsgClientToGCWeekendTourneyGetPlayerStatsResponse Request type: CMsgDOTAWeekendTourneyPlayerStatsRequest Response type: CMsgDOTAWeekendTourneyPlayerStats

func (*Dota2) GetWeekendTourneySchedule

func (d *Dota2) GetWeekendTourneySchedule()

GetWeekendTourneySchedule gets a weekend tourney schedule. Request ID: k_EMsgDOTAGetWeekendTourneySchedule Request type: CMsgRequestWeekendTourneySchedule

func (*Dota2) GiveTip

func (d *Dota2) GiveTip(
	ctx context.Context,
	recipientAccountID uint32,
	matchID uint64,
	eventID uint32,
) (*protocol.CMsgClientToGCGiveTipResponse, error)

GiveTip gives a tip. Request ID: k_EMsgClientToGCGiveTip Response ID: k_EMsgClientToGCGiveTipResponse Request type: CMsgClientToGCGiveTip Response type: CMsgClientToGCGiveTipResponse

func (*Dota2) GrantDevEventAction

func (d *Dota2) GrantDevEventAction(
	ctx context.Context,
	eventID protocol.EEvent,
	actionID uint32,
	actionScore uint32,
) (*protocol.CMsgDevGrantEventActionResponse, error)

GrantDevEventAction grants a dev event action. Request ID: k_EMsgDevGrantEventAction Response ID: k_EMsgDevGrantEventActionResponse Request type: CMsgDevGrantEventAction Response type: CMsgDevGrantEventActionResponse

func (*Dota2) GrantDevEventPoints

func (d *Dota2) GrantDevEventPoints(
	ctx context.Context,
	eventID protocol.EEvent,
	eventPoints uint32,
	premiumPoints uint32,
) (*protocol.CMsgDevGrantEventPointsResponse, error)

GrantDevEventPoints grants dev event points. Request ID: k_EMsgDevGrantEventPoints Response ID: k_EMsgDevGrantEventPointsResponse Request type: CMsgDevGrantEventPoints Response type: CMsgDevGrantEventPointsResponse

func (*Dota2) GrantEventSupportConsumeItem

func (d *Dota2) GrantEventSupportConsumeItem(
	ctx context.Context,
	itemID uint64,
) (*protocol.CMsgConsumeEventSupportGrantItemResponse, error)

GrantEventSupportConsumeItem grants a event support consume item. Request ID: k_EMsgConsumeEventSupportGrantItem Response ID: k_EMsgConsumeEventSupportGrantItemResponse Request type: CMsgConsumeEventSupportGrantItem Response type: CMsgConsumeEventSupportGrantItemResponse

func (*Dota2) HandleGCPacket

func (d *Dota2) HandleGCPacket(packet *gamecoordinator.GCPacket)

HandleGCPacket handles an incoming game coordinator packet.

func (*Dota2) InviteLobbyMember

func (d *Dota2) InviteLobbyMember(playerID steamid.SteamId)

InviteLobbyMember attempts to invite a player to the current lobby.

func (*Dota2) InvitePlayerToTeam

func (d *Dota2) InvitePlayerToTeam(
	ctx context.Context,
	accountID uint32,
	teamID uint32,
) (*protocol.CMsgDOTATeamInvite_GCImmediateResponseToInviter, error)

InvitePlayerToTeam is undocumented. Request ID: k_EMsgGCTeamInvite_InviterToGC Response ID: k_EMsgGCTeamInvite_GCImmediateResponseToInviter Request type: CMsgDOTATeamInvite_InviterToGC Response type: CMsgDOTATeamInvite_GCImmediateResponseToInviter

func (*Dota2) InvitePrivateChatMember

func (d *Dota2) InvitePrivateChatMember(
	privateChatChannelName string,
	invitedAccountID uint32,
)

InvitePrivateChatMember is undocumented. Request ID: k_EMsgClientToGCPrivateChatInvite Request type: CMsgClientToGCPrivateChatInvite

func (*Dota2) JoinChatChannel

func (d *Dota2) JoinChatChannel(
	ctx context.Context,
	channelName string,
	channelType protocol.DOTAChatChannelTypeT,
) (*protocol.CMsgDOTAJoinChatChannelResponse, error)

JoinChatChannel joins a chat channel. Request ID: k_EMsgGCJoinChatChannel Response ID: k_EMsgGCJoinChatChannelResponse Request type: CMsgDOTAJoinChatChannel Response type: CMsgDOTAJoinChatChannelResponse

func (*Dota2) JoinLobby

func (d *Dota2) JoinLobby(
	ctx context.Context,
	lobbyID uint64,
	passKey string,
	customGameCrc uint64,
	customGameTimestamp uint32,
) (*protocol.CMsgPracticeLobbyJoinResponse, error)

JoinLobby joins a lobby. Request ID: k_EMsgGCPracticeLobbyJoin Response ID: k_EMsgGCPracticeLobbyJoinResponse Request type: CMsgPracticeLobbyJoin Response type: CMsgPracticeLobbyJoinResponse

func (*Dota2) JoinLobbyBroadcastChannel

func (d *Dota2) JoinLobbyBroadcastChannel(
	channel uint32,
	preferredDescription string,
	preferredCountryCode string,
	preferredLanguageCode string,
)

JoinLobbyBroadcastChannel joins a lobby broadcast channel. Request ID: k_EMsgGCPracticeLobbyJoinBroadcastChannel Request type: CMsgPracticeLobbyJoinBroadcastChannel

func (*Dota2) JoinLobbyTeam

func (d *Dota2) JoinLobbyTeam(team gcm.DOTA_GC_TEAM, slot uint32)

JoinLobbyTeam switches team in a lobby.

func (*Dota2) JoinPartyFromBeacon

func (d *Dota2) JoinPartyFromBeacon(
	ctx context.Context,
	partyID uint64,
	accountID uint32,
	beaconType int32,
) (*protocol.CMsgGCToClientJoinPartyFromBeaconResponse, error)

JoinPartyFromBeacon joins a party from beacon. Request ID: k_EMsgClientToGCJoinPartyFromBeacon Response ID: k_EMsgGCToClientJoinPartyFromBeaconResponse Request type: CMsgClientToGCJoinPartyFromBeacon Response type: CMsgGCToClientJoinPartyFromBeaconResponse

func (*Dota2) JoinPlaytest

JoinPlaytest joins a playtest. Request ID: k_EMsgClientToGCJoinPlaytest Response ID: k_EMsgClientToGCJoinPlaytestResponse Request type: CMsgClientToGCJoinPlaytest Response type: CMsgClientToGCJoinPlaytestResponse

func (*Dota2) JoinQuickCustomLobby

JoinQuickCustomLobby joins a quick custom lobby. Request ID: k_EMsgGCQuickJoinCustomLobby Response ID: k_EMsgGCQuickJoinCustomLobbyResponse Request type: CMsgQuickJoinCustomLobby Response type: CMsgQuickJoinCustomLobbyResponse

func (*Dota2) KickLobbyMember

func (d *Dota2) KickLobbyMember(
	accountID uint32,
)

KickLobbyMember kicks a lobby member. Request ID: k_EMsgGCPracticeLobbyKick Request type: CMsgPracticeLobbyKick

func (*Dota2) KickLobbyMemberFromTeam

func (d *Dota2) KickLobbyMemberFromTeam(
	accountID uint32,
)

KickLobbyMemberFromTeam kicks a lobby member from team. Request ID: k_EMsgGCPracticeLobbyKickFromTeam Request type: CMsgPracticeLobbyKickFromTeam

func (*Dota2) KickPrivateChatMember

func (d *Dota2) KickPrivateChatMember(
	privateChatChannelName string,
	kickAccountID uint32,
)

KickPrivateChatMember kicks a private chat member. Request ID: k_EMsgClientToGCPrivateChatKick Request type: CMsgClientToGCPrivateChatKick

func (*Dota2) KickTeamMember

func (d *Dota2) KickTeamMember(
	ctx context.Context,
	accountID uint32,
	teamID uint32,
) (*protocol.CMsgDOTAKickTeamMemberResponse, error)

KickTeamMember kicks a team member. Request ID: k_EMsgGCKickTeamMember Response ID: k_EMsgGCKickTeamMemberResponse Request type: CMsgDOTAKickTeamMember Response type: CMsgDOTAKickTeamMemberResponse

func (*Dota2) LaunchLobby

func (d *Dota2) LaunchLobby()

LaunchLobby launchs a lobby. Request ID: k_EMsgGCPracticeLobbyLaunch Request type: CMsgPracticeLobbyLaunch

func (*Dota2) LeaveChatChannel

func (d *Dota2) LeaveChatChannel(
	channelID uint64,
)

LeaveChatChannel leaves a chat channel. Request ID: k_EMsgGCLeaveChatChannel Request type: CMsgDOTALeaveChatChannel

func (*Dota2) LeaveCreateLobby

func (d *Dota2) LeaveCreateLobby(ctx context.Context, details *gcccm.CMsgPracticeLobbySetDetails, destroyOldLobby bool) error

LeaveCreateLobby attempts to leave any current lobby and creates a new one.

func (*Dota2) LeaveLobby

func (d *Dota2) LeaveLobby()

LeaveLobby leaves a lobby. Request ID: k_EMsgGCPracticeLobbyLeave Request type: CMsgPracticeLobbyLeave

func (*Dota2) LeaveParty

func (d *Dota2) LeaveParty()

LeaveParty attempts to leave the current party.

func (*Dota2) LeaveTeam

func (d *Dota2) LeaveTeam(
	ctx context.Context,
	teamID uint32,
) (*protocol.CMsgDOTALeaveTeamResponse, error)

LeaveTeam leaves a team. Request ID: k_EMsgGCLeaveTeam Response ID: k_EMsgGCLeaveTeamResponse Request type: CMsgDOTALeaveTeam Response type: CMsgDOTALeaveTeamResponse

func (*Dota2) LeaveTourneyWeekend

func (d *Dota2) LeaveTourneyWeekend()

LeaveTourneyWeekend leaves a tourney weekend. Request ID: k_EMsgClientToGCWeekendTourneyLeave Request type: CMsgWeekendTourneyLeave

func (*Dota2) ListChatChannel

ListChatChannel lists a chat channel. Request ID: k_EMsgGCRequestChatChannelList Response ID: k_EMsgGCRequestChatChannelListResponse Request type: CMsgDOTARequestChatChannelList Response type: CMsgDOTARequestChatChannelListResponse

func (*Dota2) ListCustomGamesTop

func (d *Dota2) ListCustomGamesTop(
	topCustomGames []uint64,
	gameOfTheDay uint64,
)

ListCustomGamesTop lists a custom games top. Request ID: k_EMsgGCTopCustomGamesList Request type: CMsgGCTopCustomGamesList

func (*Dota2) ListFriendLobby

func (d *Dota2) ListFriendLobby(
	ctx context.Context,
	friends []uint32,
) (*protocol.CMsgFriendPracticeLobbyListResponse, error)

ListFriendLobby lists a friend lobby. Request ID: k_EMsgGCFriendPracticeLobbyListRequest Response ID: k_EMsgGCFriendPracticeLobbyListResponse Request type: CMsgFriendPracticeLobbyListRequest Response type: CMsgFriendPracticeLobbyListResponse

func (*Dota2) ListLobbies

func (d *Dota2) ListLobbies(
	ctx context.Context,
	passKey string,
	region uint32,
	gameMode protocol.DOTA_GameMode,
) (*protocol.CMsgPracticeLobbyListResponse, error)

ListLobbies lists lobbies. Request ID: k_EMsgGCPracticeLobbyList Response ID: k_EMsgGCPracticeLobbyListResponse Request type: CMsgPracticeLobbyList Response type: CMsgPracticeLobbyListResponse

func (*Dota2) ListLobbySpectator

func (d *Dota2) ListLobbySpectator(
	ctx context.Context,
) (*protocol.CMsgSpectatorLobbyListResponse, error)

ListLobbySpectator lists a lobby spectator. Request ID: k_EMsgClientToGCSpectatorLobbyList Response ID: k_EMsgClientToGCSpectatorLobbyListResponse Request type: CMsgSpectatorLobbyList Response type: CMsgSpectatorLobbyListResponse

func (*Dota2) ListNotificationMarkRead

func (d *Dota2) ListNotificationMarkRead(
	notificationIDs []uint64,
)

ListNotificationMarkRead lists a notification mark read. Request ID: k_EMsgClientToGCMarkNotificationListRead Request type: CMsgClientToGCMarkNotificationListRead

func (*Dota2) ListProTeam

func (d *Dota2) ListProTeam(
	ctx context.Context,
) (*protocol.CMsgDOTAProTeamListResponse, error)

ListProTeam lists a pro team. Request ID: k_EMsgGCProTeamListRequest Response ID: k_EMsgGCProTeamListResponse Request type: CMsgDOTAProTeamListRequest Response type: CMsgDOTAProTeamListResponse

func (*Dota2) ListTrophies

func (d *Dota2) ListTrophies(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgClientToGCGetTrophyListResponse, error)

ListTrophies lists trophies. Request ID: k_EMsgClientToGCGetTrophyList Response ID: k_EMsgClientToGCGetTrophyListResponse Request type: CMsgClientToGCGetTrophyList Response type: CMsgClientToGCGetTrophyListResponse

func (*Dota2) MakeRequest

func (d *Dota2) MakeRequest(
	ctx context.Context,
	reqMsgID uint32,
	request proto.Message,
	respMsgID uint32,
	response proto.Message,
	matchesRequest ...func(proto.Message) bool,
) (mrErr error)

MakeRequest starts and tracks a request given a context.

func (*Dota2) OpenPlayerCardPack

func (d *Dota2) OpenPlayerCardPack(
	ctx context.Context,
	playerCardPackItemID uint64,
) (*protocol.CMsgClientToGCOpenPlayerCardPackResponse, error)

OpenPlayerCardPack opens a player card pack. Request ID: k_EMsgClientToGCOpenPlayerCardPack Response ID: k_EMsgClientToGCOpenPlayerCardPackResponse Request type: CMsgClientToGCOpenPlayerCardPack Response type: CMsgClientToGCOpenPlayerCardPackResponse

func (*Dota2) PromotePrivateChatMember

func (d *Dota2) PromotePrivateChatMember(
	privateChatChannelName string,
	promoteAccountID uint32,
)

PromotePrivateChatMember promotes a private chat member. Request ID: k_EMsgClientToGCPrivateChatPromote Request type: CMsgClientToGCPrivateChatPromote

func (*Dota2) PublishUserStat

func (d *Dota2) PublishUserStat(
	userStatsEvent uint32,
	referenceData uint64,
)

PublishUserStat publishs a user stat. Request ID: k_EMsgClientToGCPublishUserStat Request type: CMsgClientToGCPublishUserStat

func (*Dota2) PurchaseHeroRandomRelic

func (d *Dota2) PurchaseHeroRandomRelic(
	ctx context.Context,
	heroID uint32,
) (*protocol.CMsgPurchaseHeroRandomRelicResponse, error)

PurchaseHeroRandomRelic purchases a hero random relic. Request ID: k_EMsgPurchaseHeroRandomRelic Response ID: k_EMsgPurchaseHeroRandomRelicResponse Request type: CMsgPurchaseHeroRandomRelic Response type: CMsgPurchaseHeroRandomRelicResponse

func (*Dota2) PurchaseHeroRelic

func (d *Dota2) PurchaseHeroRelic(
	ctx context.Context,
	heroID uint32,
	killEaterType uint32,
) (*protocol.CMsgPurchaseHeroRelicResponse, error)

PurchaseHeroRelic purchases a hero relic. Request ID: k_EMsgPurchaseHeroRelic Response ID: k_EMsgPurchaseHeroRelicResponse Request type: CMsgPurchaseHeroRelic Response type: CMsgPurchaseHeroRelicResponse

func (*Dota2) PurchaseItemWithEventPoints

func (d *Dota2) PurchaseItemWithEventPoints(
	ctx context.Context,
	itemDef uint32,
	quantity uint32,
	eventID protocol.EEvent,
	usePremiumPoints bool,
) (*protocol.CMsgPurchaseItemWithEventPointsResponse, error)

PurchaseItemWithEventPoints purchases item with event points. Request ID: k_EMsgPurchaseItemWithEventPoints Response ID: k_EMsgPurchaseItemWithEventPointsResponse Request type: CMsgPurchaseItemWithEventPoints Response type: CMsgPurchaseItemWithEventPointsResponse

func (*Dota2) PurchasePlayerCardSpecific

func (d *Dota2) PurchasePlayerCardSpecific(
	ctx context.Context,
	playerAccountID uint32,
	eventID uint32,
	cardDustItemID uint64,
) (*protocol.CMsgClientToGCPlayerCardSpecificPurchaseResponse, error)

PurchasePlayerCardSpecific purchases a player card specific. Request ID: k_EMsgClientToGCPlayerCardSpecificPurchaseRequest Response ID: k_EMsgClientToGCPlayerCardSpecificPurchaseResponse Request type: CMsgClientToGCPlayerCardSpecificPurchaseRequest Response type: CMsgClientToGCPlayerCardSpecificPurchaseResponse

func (*Dota2) QueryHasItem

func (d *Dota2) QueryHasItem(
	accountID uint32,
	itemID uint64,
)

QueryHasItem queries to check if the target has item. Request ID: k_EMsgGCHasItemQuery Request type: CMsgDOTAHasItemQuery

func (*Dota2) QueryHasItemDefs

func (d *Dota2) QueryHasItemDefs(
	accountID uint32,
	itemdefIDs []uint32,
)

QueryHasItemDefs queries to check if the target has item defs. Request ID: k_EMsgGCHasItemDefsQuery Request type: CMsgDOTAHasItemDefsQuery

func (*Dota2) QueryIsPro

func (d *Dota2) QueryIsPro(
	accountID uint32,
)

QueryIsPro queries to check if the target is pro. Request ID: k_EMsgGCIsProQuery Request type: CMsgGCIsProQuery

func (*Dota2) RecordContestVote

func (d *Dota2) RecordContestVote(
	ctx context.Context,
	contestID uint32,
	contestItemID uint64,
	vote int32,
) (*protocol.CMsgGCToClientRecordContestVoteResponse, error)

RecordContestVote records a contest vote. Request ID: k_EMsgClientToGCRecordContestVote Response ID: k_EMsgGCToClientRecordContestVoteResponse Request type: CMsgClientToGCRecordContestVote Response type: CMsgGCToClientRecordContestVoteResponse

func (*Dota2) RecycleHeroRelic

func (d *Dota2) RecycleHeroRelic(
	ctx context.Context,
	itemIDs []uint64,
) (*protocol.CMsgClientToGCRecycleHeroRelicResponse, error)

RecycleHeroRelic recycles a hero relic. Request ID: k_EMsgClientToGCRecycleHeroRelic Response ID: k_EMsgClientToGCRecycleHeroRelicResponse Request type: CMsgClientToGCRecycleHeroRelic Response type: CMsgClientToGCRecycleHeroRelicResponse

func (*Dota2) RecyclePlayerCard

func (d *Dota2) RecyclePlayerCard(
	ctx context.Context,
	playerCardItemIDs []uint64,
	eventID uint32,
) (*protocol.CMsgClientToGCRecyclePlayerCardResponse, error)

RecyclePlayerCard recycles a player card. Request ID: k_EMsgClientToGCRecyclePlayerCard Response ID: k_EMsgClientToGCRecyclePlayerCardResponse Request type: CMsgClientToGCRecyclePlayerCard Response type: CMsgClientToGCRecyclePlayerCardResponse

func (*Dota2) RedeemItem

func (d *Dota2) RedeemItem(
	ctx context.Context,
	currencyID uint64,
	purchaseDef uint32,
) (*protocol.CMsgDOTARedeemItemResponse, error)

RedeemItem redeems a item. Request ID: k_EMsgDOTARedeemItem Response ID: k_EMsgDOTARedeemItemResponse Request type: CMsgDOTARedeemItem Response type: CMsgDOTARedeemItemResponse

func (*Dota2) RedeemTabsPull

func (d *Dota2) RedeemTabsPull(
	ctx context.Context,
	eventID uint32,
	boardID uint32,
	heroID uint32,
) (*protocol.CMsgGCToClientPullTabsRedeemResponse, error)

RedeemTabsPull redeems a tabs pull. Request ID: k_EMsgClientToGCPullTabsRedeem Response ID: k_EMsgGCToClientPullTabsRedeemResponse Request type: CMsgClientToGCPullTabsRedeem Response type: CMsgGCToClientPullTabsRedeemResponse

func (d *Dota2) RefreshPartnerAccountLink(
	partnerType int32,
)

RefreshPartnerAccountLink refreshs a partner account link. Request ID: k_EMsgRefreshPartnerAccountLink Request type: CMsgRefreshPartnerAccountLink

func (*Dota2) RejoinAllChatChannels

func (d *Dota2) RejoinAllChatChannels()

RejoinAllChatChannels is undocumented. Request ID: k_EMsgClientsRejoinChatChannels Request type: CMsgClientsRejoinChatChannels

func (*Dota2) ReleaseEditorItemReservation

func (d *Dota2) ReleaseEditorItemReservation(
	ctx context.Context,
	defIndex uint32,
	username string,
) (*protocol.CMsgGCItemEditorReleaseReservationResponse, error)

ReleaseEditorItemReservation releases a editor item reservation. Request ID: k_EMsgGCItemEditorReleaseReservation Response ID: k_EMsgGCItemEditorReleaseReservationResponse Request type: CMsgGCItemEditorReleaseReservation Response type: CMsgGCItemEditorReleaseReservationResponse

func (*Dota2) ReportChatPublicSpam

func (d *Dota2) ReportChatPublicSpam(
	channelID uint64,
	channelUserID uint32,
)

ReportChatPublicSpam reports a chat public spam. Request ID: k_EMsgGCChatReportPublicSpam Request type: CMsgGCChatReportPublicSpam

func (*Dota2) RequestActivatePlusFreeTrial

func (d *Dota2) RequestActivatePlusFreeTrial(
	ctx context.Context,
) (*protocol.CMsgActivatePlusFreeTrialResponse, error)

RequestActivatePlusFreeTrial requests a activate plus free trial. Request ID: k_EMsgActivatePlusFreeTrialRequest Response ID: k_EMsgActivatePlusFreeTrialResponse Request type: CMsgActivatePlusFreeTrialRequest Response type: CMsgActivatePlusFreeTrialResponse

func (*Dota2) RequestActiveBeaconParties

func (d *Dota2) RequestActiveBeaconParties(
	ctx context.Context,
) (*protocol.CMsgGCToClientRequestActiveBeaconPartiesResponse, error)

RequestActiveBeaconParties requests active beacon parties. Request ID: k_EMsgClientToGCRequestActiveBeaconParties Response ID: k_EMsgGCToClientRequestActiveBeaconPartiesResponse Request type: CMsgClientToGCRequestActiveBeaconParties Response type: CMsgGCToClientRequestActiveBeaconPartiesResponse

func (*Dota2) RequestAnchorPhoneNumber

func (d *Dota2) RequestAnchorPhoneNumber(
	ctx context.Context,
) (*protocol.CMsgDOTAAnchorPhoneNumberResponse, error)

RequestAnchorPhoneNumber requests to check if the target anchor phone number. Request ID: k_EMsgAnchorPhoneNumberRequest Response ID: k_EMsgAnchorPhoneNumberResponse Request type: CMsgDOTAAnchorPhoneNumberRequest Response type: CMsgDOTAAnchorPhoneNumberResponse

func (*Dota2) RequestArcanaVotesRemaining

func (d *Dota2) RequestArcanaVotesRemaining(
	ctx context.Context,
) (*protocol.CMsgClientToGCRequestArcanaVotesRemainingResponse, error)

RequestArcanaVotesRemaining requests a arcana votes remaining. Request ID: k_EMsgClientToGCRequestArcanaVotesRemaining Response ID: k_EMsgClientToGCRequestArcanaVotesRemainingResponse Request type: CMsgClientToGCRequestArcanaVotesRemaining Response type: CMsgClientToGCRequestArcanaVotesRemainingResponse

func (*Dota2) RequestCacheSubscriptionRefresh

func (d *Dota2) RequestCacheSubscriptionRefresh(ownerSoid *gcsdkm.CMsgSOIDOwner)

RequestCacheSubscriptionRefresh requests a subscription refresh for a specific cache ID.

func (*Dota2) RequestCompendiumData

func (d *Dota2) RequestCompendiumData(
	ctx context.Context,
	accountID uint32,
	leagueid uint32,
) (*protocol.CMsgDOTACompendiumDataResponse, error)

RequestCompendiumData requests a compendium data. Request ID: k_EMsgGCCompendiumDataRequest Response ID: k_EMsgGCCompendiumDataResponse Request type: CMsgDOTACompendiumDataRequest Response type: CMsgDOTACompendiumDataResponse

func (*Dota2) RequestContestVotes

func (d *Dota2) RequestContestVotes(
	ctx context.Context,
	contestID uint32,
) (*protocol.CMsgClientToGCRequestContestVotesResponse, error)

RequestContestVotes requests contest votes. Request ID: k_EMsgClientToGCRequestContestVotes Response ID: k_EMsgClientToGCRequestContestVotesResponse Request type: CMsgClientToGCRequestContestVotes Response type: CMsgClientToGCRequestContestVotesResponse

func (*Dota2) RequestCrawlCavernMapState

func (d *Dota2) RequestCrawlCavernMapState(
	ctx context.Context,
	eventID uint32,
) (*protocol.CMsgClientToGCCavernCrawlRequestMapStateResponse, error)

RequestCrawlCavernMapState requests a crawl cavern map state. Request ID: k_EMsgClientToGCCavernCrawlRequestMapState Response ID: k_EMsgClientToGCCavernCrawlRequestMapStateResponse Request type: CMsgClientToGCCavernCrawlRequestMapState Response type: CMsgClientToGCCavernCrawlRequestMapStateResponse

func (*Dota2) RequestCustomGamePlayerCount

func (d *Dota2) RequestCustomGamePlayerCount(
	ctx context.Context,
	customGameID uint64,
) (*protocol.CMsgGCToClientCustomGamePlayerCountResponse, error)

RequestCustomGamePlayerCount requests a custom game player count. Request ID: k_EMsgClientToGCCustomGamePlayerCountRequest Response ID: k_EMsgGCToClientCustomGamePlayerCountResponse Request type: CMsgClientToGCCustomGamePlayerCountRequest Response type: CMsgGCToClientCustomGamePlayerCountResponse

func (*Dota2) RequestCustomGamesFriendsPlayed

func (d *Dota2) RequestCustomGamesFriendsPlayed(
	ctx context.Context,
) (*protocol.CMsgGCToClientCustomGamesFriendsPlayedResponse, error)

RequestCustomGamesFriendsPlayed requests a custom games friends played. Request ID: k_EMsgClientToGCCustomGamesFriendsPlayedRequest Response ID: k_EMsgGCToClientCustomGamesFriendsPlayedResponse Request type: CMsgClientToGCCustomGamesFriendsPlayedRequest Response type: CMsgGCToClientCustomGamesFriendsPlayedResponse

func (*Dota2) RequestEmoticonData

func (d *Dota2) RequestEmoticonData(
	ctx context.Context,
) (*protocol.CMsgGCToClientEmoticonData, error)

RequestEmoticonData requests a emoticon data. Request ID: k_EMsgClientToGCEmoticonDataRequest Response ID: k_EMsgGCToClientEmoticonData Request type: CMsgClientToGCEmoticonDataRequest Response type: CMsgGCToClientEmoticonData

func (*Dota2) RequestEventGoals

func (d *Dota2) RequestEventGoals(
	ctx context.Context,
	eventIDs []protocol.EEvent,
) (*protocol.CMsgEventGoals, error)

RequestEventGoals requests event goals. Request ID: k_EMsgClientToGCEventGoalsRequest Response ID: k_EMsgClientToGCEventGoalsResponse Request type: CMsgClientToGCGetEventGoals Response type: CMsgEventGoals

func (*Dota2) RequestEventPointLogResponseV2

func (d *Dota2) RequestEventPointLogResponseV2(
	result bool,
	eventID protocol.EEvent,
	logEntries []*protocol.CMsgClientToGCRequestEventPointLogResponseV2_LogEntry,
)

RequestEventPointLogResponseV2 requests a event point log response v 2. Request ID: k_EMsgClientToGCRequestEventPointLogResponseV2 Request type: CMsgClientToGCRequestEventPointLogResponseV2

func (*Dota2) RequestEventPointLogV2

func (d *Dota2) RequestEventPointLogV2(
	eventID uint32,
)

RequestEventPointLogV2 requests a event point log v 2. Request ID: k_EMsgClientToGCRequestEventPointLogV2 Request type: CMsgClientToGCRequestEventPointLogV2

func (*Dota2) RequestEventTipsSummary

func (d *Dota2) RequestEventTipsSummary(
	ctx context.Context,
	eventID protocol.EEvent,
	accountID uint32,
) (*protocol.CMsgEventTipsSummaryResponse, error)

RequestEventTipsSummary requests a event tips summary. Request ID: k_EMsgClientToGCRequestEventTipsSummary Response ID: k_EMsgClientToGCRequestEventTipsSummaryResponse Request type: CMsgEventTipsSummaryRequest Response type: CMsgEventTipsSummaryResponse

func (*Dota2) RequestFantasyLeagueDraftPlayer

func (d *Dota2) RequestFantasyLeagueDraftPlayer(
	ctx context.Context,
	fantasyLeagueID uint32,
	teamIndex uint32,
	playerAccountID uint32,
) (*protocol.CMsgDOTAFantasyLeagueDraftPlayerResponse, error)

RequestFantasyLeagueDraftPlayer requests a fantasy league draft player. Request ID: k_EMsgGCFantasyLeagueDraftPlayerRequest Response ID: k_EMsgGCFantasyLeagueDraftPlayerResponse Request type: CMsgDOTAFantasyLeagueDraftPlayerRequest Response type: CMsgDOTAFantasyLeagueDraftPlayerResponse

func (*Dota2) RequestFantasyLeagueDraftStatus

func (d *Dota2) RequestFantasyLeagueDraftStatus(
	ctx context.Context,
	fantasyLeagueID uint32,
) (*protocol.CMsgDOTAFantasyLeagueDraftStatus, error)

RequestFantasyLeagueDraftStatus requests fantasy league draft status. Request ID: k_EMsgGCFantasyLeagueDraftStatusRequest Response ID: k_EMsgGCFantasyLeagueDraftStatus Request type: CMsgDOTAFantasyLeagueDraftStatusRequest Response type: CMsgDOTAFantasyLeagueDraftStatus

func (*Dota2) RequestFantasyLeagueEditInfo

func (d *Dota2) RequestFantasyLeagueEditInfo(
	ctx context.Context,
	fantasyLeagueID uint32,
	editInfo protocol.CMsgDOTAFantasyLeagueInfo,
) (*protocol.CMsgDOTAFantasyLeagueEditInfoResponse, error)

RequestFantasyLeagueEditInfo requests a fantasy league edit info. Request ID: k_EMsgGCFantasyLeagueEditInfoRequest Response ID: k_EMsgGCFantasyLeagueEditInfoResponse Request type: CMsgDOTAFantasyLeagueEditInfoRequest Response type: CMsgDOTAFantasyLeagueEditInfoResponse

func (*Dota2) RequestFantasyLeagueEditInvites

func (d *Dota2) RequestFantasyLeagueEditInvites(
	ctx context.Context,
	fantasyLeagueID uint32,
	password string,
	inviteChange []*protocol.CMsgDOTAFantasyLeagueEditInvitesRequest_InviteChange,
) (*protocol.CMsgDOTAFantasyLeagueEditInvitesResponse, error)

RequestFantasyLeagueEditInvites requests fantasy league edit invites. Request ID: k_EMsgGCFantasyLeagueEditInvitesRequest Response ID: k_EMsgGCFantasyLeagueEditInvitesResponse Request type: CMsgDOTAFantasyLeagueEditInvitesRequest Response type: CMsgDOTAFantasyLeagueEditInvitesResponse

func (*Dota2) RequestFantasyLeagueInfo

func (d *Dota2) RequestFantasyLeagueInfo(
	ctx context.Context,
	fantasyLeagueID uint32,
) (*protocol.CMsgDOTAFantasyLeagueInfoResponse, error)

RequestFantasyLeagueInfo requests a fantasy league info. Request ID: k_EMsgGCFantasyLeagueInfoRequest Response ID: k_EMsgGCFantasyLeagueInfoResponse Request type: CMsgDOTAFantasyLeagueInfoRequest Response type: CMsgDOTAFantasyLeagueInfoResponse

func (*Dota2) RequestFantasyLeagueMatchups

func (d *Dota2) RequestFantasyLeagueMatchups(
	ctx context.Context,
	fantasyLeagueID uint32,
) (*protocol.CMsgDOTAFantasyLeagueMatchupsResponse, error)

RequestFantasyLeagueMatchups requests fantasy league matchups. Request ID: k_EMsgGCFantasyLeagueMatchupsRequest Response ID: k_EMsgGCFantasyLeagueMatchupsResponse Request type: CMsgDOTAFantasyLeagueMatchupsRequest Response type: CMsgDOTAFantasyLeagueMatchupsResponse

func (*Dota2) RequestFantasyLeaveLeague

func (d *Dota2) RequestFantasyLeaveLeague(
	ctx context.Context,
	fantasyLeagueID uint32,
	fantasyTeamIndex uint32,
) (*protocol.CMsgDOTAFantasyLeaveLeagueResponse, error)

RequestFantasyLeaveLeague requests a fantasy leave league. Request ID: k_EMsgGCFantasyLeaveLeagueRequest Response ID: k_EMsgGCFantasyLeaveLeagueResponse Request type: CMsgDOTAFantasyLeaveLeagueRequest Response type: CMsgDOTAFantasyLeaveLeagueResponse

func (*Dota2) RequestFantasyMessages

func (d *Dota2) RequestFantasyMessages(
	ctx context.Context,
	fantasyLeagueID uint32,
	startMessage uint32,
	endMessage uint32,
) (*protocol.CMsgDOTAFantasyMessagesResponse, error)

RequestFantasyMessages requests fantasy messages. Request ID: k_EMsgGCFantasyMessagesRequest Response ID: k_EMsgGCFantasyMessagesResponse Request type: CMsgDOTAFantasyMessagesRequest Response type: CMsgDOTAFantasyMessagesResponse

func (*Dota2) RequestFantasyPlayerHisoricalStats

func (d *Dota2) RequestFantasyPlayerHisoricalStats(
	ctx context.Context,
	fantasyLeagueID uint32,
) (*protocol.CMsgDOTAFantasyPlayerHisoricalStatsResponse, error)

RequestFantasyPlayerHisoricalStats requests fantasy player hisorical stats. Request ID: k_EMsgGCFantasyPlayerHisoricalStatsRequest Response ID: k_EMsgGCFantasyPlayerHisoricalStatsResponse Request type: CMsgDOTAFantasyPlayerHisoricalStatsRequest Response type: CMsgDOTAFantasyPlayerHisoricalStatsResponse

func (*Dota2) RequestFantasyPlayerScore

RequestFantasyPlayerScore requests a fantasy player score. Request ID: k_EMsgGCFantasyPlayerScoreRequest Response ID: k_EMsgGCFantasyPlayerScoreResponse Request type: CMsgDOTAFantasyPlayerScoreRequest Response type: CMsgDOTAFantasyPlayerScoreResponse

func (*Dota2) RequestFantasyPlayerScoreDetails

func (d *Dota2) RequestFantasyPlayerScoreDetails(
	ctx context.Context,
	fantasyLeagueID uint32,
	playerAccountID uint32,
	startTime uint32,
	endTime uint32,
) (*protocol.CMsgDOTAFantasyPlayerScoreDetailsResponse, error)

RequestFantasyPlayerScoreDetails requests fantasy player score details. Request ID: k_EMsgGCFantasyPlayerScoreDetailsRequest Response ID: k_EMsgGCFantasyPlayerScoreDetailsResponse Request type: CMsgDOTAFantasyPlayerScoreDetailsRequest Response type: CMsgDOTAFantasyPlayerScoreDetailsResponse

func (*Dota2) RequestFantasyPlayerStandings

RequestFantasyPlayerStandings requests fantasy player standings. Request ID: k_EMsgGCFantasyPlayerStandingsRequest Response ID: k_EMsgGCFantasyPlayerStandingsResponse Request type: CMsgDOTAFantasyPlayerStandingsRequest Response type: CMsgDOTAFantasyPlayerStandingsResponse

func (*Dota2) RequestFantasyScheduledMatches

func (d *Dota2) RequestFantasyScheduledMatches(
	ctx context.Context,
	fantasyLeagueID uint32,
) (*protocol.CMsgDOTAFantasyScheduledMatchesResponse, error)

RequestFantasyScheduledMatches requests fantasy scheduled matches. Request ID: k_EMsgGCFantasyScheduledMatchesRequest Response ID: k_EMsgGCFantasyScheduledMatchesResponse Request type: CMsgDOTAFantasyScheduledMatchesRequest Response type: CMsgDOTAFantasyScheduledMatchesResponse

func (*Dota2) RequestFantasyTeamRoster

func (d *Dota2) RequestFantasyTeamRoster(
	ctx context.Context,
	fantasyLeagueID uint32,
	teamIndex uint32,
	ownerAccountID uint32,
	timestamp uint32,
) (*protocol.CMsgDOTAFantasyTeamRosterResponse, error)

RequestFantasyTeamRoster requests a fantasy team roster. Request ID: k_EMsgGCFantasyTeamRosterRequest Response ID: k_EMsgGCFantasyTeamRosterResponse Request type: CMsgDOTAFantasyTeamRosterRequest Response type: CMsgDOTAFantasyTeamRosterResponse

func (*Dota2) RequestFantasyTeamRosterAddDrop

func (d *Dota2) RequestFantasyTeamRosterAddDrop(
	ctx context.Context,
	fantasyLeagueID uint32,
	teamIndex uint32,
	addAccountID uint32,
	dropAccountID uint32,
) (*protocol.CMsgDOTAFantasyTeamRosterAddDropResponse, error)

RequestFantasyTeamRosterAddDrop requests a fantasy team roster add drop. Request ID: k_EMsgGCFantasyTeamRosterAddDropRequest Response ID: k_EMsgGCFantasyTeamRosterAddDropResponse Request type: CMsgDOTAFantasyTeamRosterAddDropRequest Response type: CMsgDOTAFantasyTeamRosterAddDropResponse

func (*Dota2) RequestFantasyTeamScore

RequestFantasyTeamScore requests a fantasy team score. Request ID: k_EMsgGCFantasyTeamScoreRequest Response ID: k_EMsgGCFantasyTeamScoreResponse Request type: CMsgDOTAFantasyTeamScoreRequest Response type: CMsgDOTAFantasyTeamScoreResponse

func (*Dota2) RequestFantasyTeamStandings

RequestFantasyTeamStandings requests fantasy team standings. Request ID: k_EMsgGCFantasyTeamStandingsRequest Response ID: k_EMsgGCFantasyTeamStandingsResponse Request type: CMsgDOTAFantasyTeamStandingsRequest Response type: CMsgDOTAFantasyTeamStandingsResponse

func (*Dota2) RequestFantasyTeamTrades

func (d *Dota2) RequestFantasyTeamTrades(
	ctx context.Context,
	fantasyLeagueID uint32,
) (*protocol.CMsgDOTAFantasyTeamTradesResponse, error)

RequestFantasyTeamTrades requests fantasy team trades. Request ID: k_EMsgGCFantasyTeamTradesRequest Response ID: k_EMsgGCFantasyTeamTradesResponse Request type: CMsgDOTAFantasyTeamTradesRequest Response type: CMsgDOTAFantasyTeamTradesResponse

func (*Dota2) RequestFriendRecruits

func (d *Dota2) RequestFriendRecruits(
	ctx context.Context,
	accountIDs []uint32,
) (*protocol.CMsgDOTAFriendRecruitsResponse, error)

RequestFriendRecruits requests friend recruits. Request ID: k_EMsgDOTAFriendRecruitsRequest Response ID: k_EMsgDOTAFriendRecruitsResponse Request type: CMsgDOTAFriendRecruitsRequest Response type: CMsgDOTAFriendRecruitsResponse

func (*Dota2) RequestFriendsPlayedCustomGame

func (d *Dota2) RequestFriendsPlayedCustomGame(
	ctx context.Context,
	customGameID uint64,
) (*protocol.CMsgGCToClientFriendsPlayedCustomGameResponse, error)

RequestFriendsPlayedCustomGame requests a friends played custom game. Request ID: k_EMsgClientToGCFriendsPlayedCustomGameRequest Response ID: k_EMsgGCToClientFriendsPlayedCustomGameResponse Request type: CMsgClientToGCFriendsPlayedCustomGameRequest Response type: CMsgGCToClientFriendsPlayedCustomGameResponse

func (*Dota2) RequestGetFavoriteAllStarPlayer

func (d *Dota2) RequestGetFavoriteAllStarPlayer(
	ctx context.Context,
) (*protocol.CMsgClientToGCGetFavoriteAllStarPlayerResponse, error)

RequestGetFavoriteAllStarPlayer requests to check if the target get favorite all star player. Request ID: k_EMsgClientToGCGetFavoriteAllStarPlayerRequest Response ID: k_EMsgClientToGCGetFavoriteAllStarPlayerResponse Request type: CMsgClientToGCGetFavoriteAllStarPlayerRequest Response type: CMsgClientToGCGetFavoriteAllStarPlayerResponse

func (*Dota2) RequestGetPlayerCardRoster

func (d *Dota2) RequestGetPlayerCardRoster(
	ctx context.Context,
	leagueID uint32,
	timestamp uint32,
) (*protocol.CMsgClientToGCGetPlayerCardRosterResponse, error)

RequestGetPlayerCardRoster requests to check if the target get player card roster. Request ID: k_EMsgClientToGCGetPlayerCardRosterRequest Response ID: k_EMsgClientToGCGetPlayerCardRosterResponse Request type: CMsgClientToGCGetPlayerCardRosterRequest Response type: CMsgClientToGCGetPlayerCardRosterResponse

func (*Dota2) RequestGetRecentPlayTimeFriends

func (d *Dota2) RequestGetRecentPlayTimeFriends(
	ctx context.Context,
) (*protocol.CMsgDOTAGetRecentPlayTimeFriendsResponse, error)

RequestGetRecentPlayTimeFriends requests to check if the target get recent play time friends. Request ID: k_EMsgGetRecentPlayTimeFriendsRequest Response ID: k_EMsgGetRecentPlayTimeFriendsResponse Request type: CMsgDOTAGetRecentPlayTimeFriendsRequest Response type: CMsgDOTAGetRecentPlayTimeFriendsResponse

func (*Dota2) RequestGetTicketCodes

func (d *Dota2) RequestGetTicketCodes(
	ctx context.Context,
	ticketPoolIDs []uint32,
) (*protocol.CMsgClientToGCGetTicketCodesResponse, error)

RequestGetTicketCodes requests to check if the target get ticket codes. Request ID: k_EMsgClientToGCGetTicketCodesRequest Response ID: k_EMsgClientToGCGetTicketCodesResponse Request type: CMsgClientToGCGetTicketCodesRequest Response type: CMsgClientToGCGetTicketCodesResponse

func (*Dota2) RequestH264Support

func (d *Dota2) RequestH264Support()

RequestH264Support requests a h 264 support. Request ID: k_EMsgClientToGCRequestH264Support Request type: CMsgClientToGCRequestH264Support

func (*Dota2) RequestHallOfFame

func (d *Dota2) RequestHallOfFame(
	ctx context.Context,
	week uint32,
) (*protocol.CMsgDOTAHallOfFameResponse, error)

RequestHallOfFame requests a hall of fame. Request ID: k_EMsgGCHallOfFameRequest Response ID: k_EMsgGCHallOfFameResponse Request type: CMsgDOTAHallOfFameRequest Response type: CMsgDOTAHallOfFameResponse

func (*Dota2) RequestHalloweenHighScore

func (d *Dota2) RequestHalloweenHighScore(
	ctx context.Context,
	round int32,
) (*protocol.CMsgDOTAHalloweenHighScoreResponse, error)

RequestHalloweenHighScore requests a halloween high score. Request ID: k_EMsgGCHalloweenHighScoreRequest Response ID: k_EMsgGCHalloweenHighScoreResponse Request type: CMsgDOTAHalloweenHighScoreRequest Response type: CMsgDOTAHalloweenHighScoreResponse

func (*Dota2) RequestHeroGlobalData

func (d *Dota2) RequestHeroGlobalData(
	ctx context.Context,
	heroID uint32,
) (*protocol.CMsgHeroGlobalDataResponse, error)

RequestHeroGlobalData requests a hero global data. Request ID: k_EMsgHeroGlobalDataRequest Response ID: k_EMsgHeroGlobalDataResponse Request type: CMsgHeroGlobalDataRequest Response type: CMsgHeroGlobalDataResponse

func (*Dota2) RequestItemEditorReservations

func (d *Dota2) RequestItemEditorReservations(
	ctx context.Context,
) (*protocol.CMsgGCItemEditorReservationsResponse, error)

RequestItemEditorReservations requests item editor reservations. Request ID: k_EMsgGCItemEditorReservationsRequest Response ID: k_EMsgGCItemEditorReservationsResponse Request type: CMsgGCItemEditorReservationsRequest Response type: CMsgGCItemEditorReservationsResponse

func (*Dota2) RequestJoinableCustomGameModes

func (d *Dota2) RequestJoinableCustomGameModes(
	ctx context.Context,
	serverRegion uint32,
) (*protocol.CMsgJoinableCustomGameModesResponse, error)

RequestJoinableCustomGameModes requests joinable custom game modes. Request ID: k_EMsgGCJoinableCustomGameModesRequest Response ID: k_EMsgGCJoinableCustomGameModesResponse Request type: CMsgJoinableCustomGameModesRequest Response type: CMsgJoinableCustomGameModesResponse

func (*Dota2) RequestJoinableCustomLobbies

func (d *Dota2) RequestJoinableCustomLobbies(
	ctx context.Context,
	serverRegion uint32,
	customGameID uint64,
) (*protocol.CMsgJoinableCustomLobbiesResponse, error)

RequestJoinableCustomLobbies requests joinable custom lobbies. Request ID: k_EMsgGCJoinableCustomLobbiesRequest Response ID: k_EMsgGCJoinableCustomLobbiesResponse Request type: CMsgJoinableCustomLobbiesRequest Response type: CMsgJoinableCustomLobbiesResponse

func (*Dota2) RequestLastHitChallengeHighScore

func (d *Dota2) RequestLastHitChallengeHighScore(
	ctx context.Context,
	heroID uint32,
) (*protocol.CMsgDOTALastHitChallengeHighScoreResponse, error)

RequestLastHitChallengeHighScore requests a last hit challenge high score. Request ID: k_EMsgGCLastHitChallengeHighScoreRequest Response ID: k_EMsgGCLastHitChallengeHighScoreResponse Request type: CMsgDOTALastHitChallengeHighScoreRequest Response type: CMsgDOTALastHitChallengeHighScoreResponse

func (*Dota2) RequestLatestConductScorecard

func (d *Dota2) RequestLatestConductScorecard(
	ctx context.Context,
) (*protocol.CMsgPlayerConductScorecard, error)

RequestLatestConductScorecard requests a latest conduct scorecard. Request ID: k_EMsgClientToGCLatestConductScorecardRequest Response ID: k_EMsgClientToGCLatestConductScorecard Request type: CMsgPlayerConductScorecardRequest Response type: CMsgPlayerConductScorecard

func (*Dota2) RequestLeagueAvailableLobbyNodes

func (d *Dota2) RequestLeagueAvailableLobbyNodes(
	ctx context.Context,
	leagueID uint32,
) (*protocol.CMsgDOTALeagueAvailableLobbyNodes, error)

RequestLeagueAvailableLobbyNodes requests league available lobby nodes. Request ID: k_EMsgDOTALeagueAvailableLobbyNodesRequest Response ID: k_EMsgDOTALeagueAvailableLobbyNodes Request type: CMsgDOTALeagueAvailableLobbyNodesRequest Response type: CMsgDOTALeagueAvailableLobbyNodes

func (*Dota2) RequestLeagueNode

func (d *Dota2) RequestLeagueNode(
	ctx context.Context,
	leagueID uint32,
	nodeID uint32,
) (*protocol.CMsgDOTALeagueNodeResponse, error)

RequestLeagueNode requests a league node. Request ID: k_EMsgDOTALeagueNodeRequest Response ID: k_EMsgDOTALeagueNodeResponse Request type: CMsgDOTALeagueNodeRequest Response type: CMsgDOTALeagueNodeResponse

func (*Dota2) RequestLeaguePrizePool

func (d *Dota2) RequestLeaguePrizePool(
	ctx context.Context,
	leagueID uint32,
) (*protocol.CMsgRequestLeaguePrizePoolResponse, error)

RequestLeaguePrizePool requests a league prize pool. Request ID: k_EMsgGCRequestLeaguePrizePool Response ID: k_EMsgGCRequestLeaguePrizePoolResponse Request type: CMsgRequestLeaguePrizePool Response type: CMsgRequestLeaguePrizePoolResponse

func (*Dota2) RequestMatchDetails

func (d *Dota2) RequestMatchDetails(
	ctx context.Context,
	matchID uint64,
) (*protocol.CMsgGCMatchDetailsResponse, error)

RequestMatchDetails requests match details. Request ID: k_EMsgGCMatchDetailsRequest Response ID: k_EMsgGCMatchDetailsResponse Request type: CMsgGCMatchDetailsRequest Response type: CMsgGCMatchDetailsResponse

func (*Dota2) RequestMatches

RequestMatches requests matches. Request ID: k_EMsgGCRequestMatches Response ID: k_EMsgGCRequestMatchesResponse Request type: CMsgDOTARequestMatches Response type: CMsgDOTARequestMatchesResponse

func (*Dota2) RequestMatchesMinimal

func (d *Dota2) RequestMatchesMinimal(
	ctx context.Context,
	matchIDs []uint64,
) (*protocol.CMsgClientToGCMatchesMinimalResponse, error)

RequestMatchesMinimal requests a matches minimal. Request ID: k_EMsgClientToGCMatchesMinimalRequest Response ID: k_EMsgClientToGCMatchesMinimalResponse Request type: CMsgClientToGCMatchesMinimalRequest Response type: CMsgClientToGCMatchesMinimalResponse

func (*Dota2) RequestMatchmakingStats

func (d *Dota2) RequestMatchmakingStats(
	ctx context.Context,
) (*protocol.CMsgDOTAMatchmakingStatsResponse, error)

RequestMatchmakingStats requests matchmaking stats. Request ID: k_EMsgGCMatchmakingStatsRequest Response ID: k_EMsgGCMatchmakingStatsResponse Request type: CMsgDOTAMatchmakingStatsRequest Response type: CMsgDOTAMatchmakingStatsResponse

func (*Dota2) RequestMyTeamInfo

func (d *Dota2) RequestMyTeamInfo(
	ctx context.Context,
) (*protocol.CMsgDOTATeamInfo, error)

RequestMyTeamInfo requests a my team info. Request ID: k_EMsgClientToGCMyTeamInfoRequest Response ID: k_EMsgGCToClientTeamInfo Request type: CMsgDOTAMyTeamInfoRequest Response type: CMsgDOTATeamInfo

func (*Dota2) RequestNotifications

func (d *Dota2) RequestNotifications(
	ctx context.Context,
) (*protocol.CMsgGCNotificationsResponse, error)

RequestNotifications requests notifications. Request ID: k_EMsgGCNotificationsRequest Response ID: k_EMsgGCNotificationsResponse Request type: CMsgGCNotificationsRequest Response type: CMsgGCNotificationsResponse

func (*Dota2) RequestNotificationsMarkRead

func (d *Dota2) RequestNotificationsMarkRead()

RequestNotificationsMarkRead requests a notifications mark read. Request ID: k_EMsgGCNotificationsMarkReadRequest Request type: CMsgGCNotificationsMarkReadRequest

func (*Dota2) RequestOfferings

func (d *Dota2) RequestOfferings(
	ctx context.Context,
) (*protocol.CMsgRequestOfferingsResponse, error)

RequestOfferings requests offerings. Request ID: k_EMsgGCRequestOfferings Response ID: k_EMsgGCRequestOfferingsResponse Request type: CMsgRequestOfferings Response type: CMsgRequestOfferingsResponse

func (*Dota2) RequestPerfectWorldUserLookup

func (d *Dota2) RequestPerfectWorldUserLookup(
	ctx context.Context,
	userName string,
) (*protocol.CMsgPerfectWorldUserLookupResponse, error)

RequestPerfectWorldUserLookup requests a perfect world user lookup. Request ID: k_EMsgGCPerfectWorldUserLookupRequest Response ID: k_EMsgGCPerfectWorldUserLookupResponse Request type: CMsgPerfectWorldUserLookupRequest Response type: CMsgPerfectWorldUserLookupResponse

func (*Dota2) RequestPlayerCoachMatch

func (d *Dota2) RequestPlayerCoachMatch(
	ctx context.Context,
	matchID uint64,
) (*protocol.CMsgClientToGCRequestPlayerCoachMatchResponse, error)

RequestPlayerCoachMatch requests a player coach match. Request ID: k_EMsgClientToGCRequestPlayerCoachMatch Response ID: k_EMsgClientToGCRequestPlayerCoachMatchResponse Request type: CMsgClientToGCRequestPlayerCoachMatch Response type: CMsgClientToGCRequestPlayerCoachMatchResponse

func (*Dota2) RequestPlayerCoachMatches

func (d *Dota2) RequestPlayerCoachMatches(
	ctx context.Context,
) (*protocol.CMsgClientToGCRequestPlayerCoachMatchesResponse, error)

RequestPlayerCoachMatches requests player coach matches. Request ID: k_EMsgClientToGCRequestPlayerCoachMatches Response ID: k_EMsgClientToGCRequestPlayerCoachMatchesResponse Request type: CMsgClientToGCRequestPlayerCoachMatches Response type: CMsgClientToGCRequestPlayerCoachMatchesResponse

func (*Dota2) RequestPlayerHeroRecentAccomplishments

func (d *Dota2) RequestPlayerHeroRecentAccomplishments(
	ctx context.Context,
	accountID uint32,
	heroID uint32,
) (*protocol.CMsgClientToGCRequestPlayerHeroRecentAccomplishmentsResponse, error)

RequestPlayerHeroRecentAccomplishments requests player hero recent accomplishments. Request ID: k_EMsgClientToGCRequestPlayerHeroRecentAccomplishments Response ID: k_EMsgClientToGCRequestPlayerHeroRecentAccomplishmentsResponse Request type: CMsgClientToGCRequestPlayerHeroRecentAccomplishments Response type: CMsgClientToGCRequestPlayerHeroRecentAccomplishmentsResponse

func (*Dota2) RequestPlayerInfo

func (d *Dota2) RequestPlayerInfo(
	ctx context.Context,
	playerInfos []*protocol.CMsgGCPlayerInfoRequest_PlayerInfo,
) (*protocol.CMsgDOTAPlayerInfo, error)

RequestPlayerInfo requests a player info. Request ID: k_EMsgGCPlayerInfoRequest Response ID: k_EMsgGCPlayerInfo Request type: CMsgGCPlayerInfoRequest Response type: CMsgDOTAPlayerInfo

func (*Dota2) RequestPlayerRecentAccomplishments

func (d *Dota2) RequestPlayerRecentAccomplishments(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgClientToGCRequestPlayerRecentAccomplishmentsResponse, error)

RequestPlayerRecentAccomplishments requests player recent accomplishments. Request ID: k_EMsgClientToGCRequestPlayerRecentAccomplishments Response ID: k_EMsgClientToGCRequestPlayerRecentAccomplishmentsResponse Request type: CMsgClientToGCRequestPlayerRecentAccomplishments Response type: CMsgClientToGCRequestPlayerRecentAccomplishmentsResponse

func (*Dota2) RequestPlayerStats

func (d *Dota2) RequestPlayerStats(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgGCToClientPlayerStatsResponse, error)

RequestPlayerStats requests player stats. Request ID: k_EMsgClientToGCPlayerStatsRequest Response ID: k_EMsgGCToClientPlayerStatsResponse Request type: CMsgClientToGCPlayerStatsRequest Response type: CMsgGCToClientPlayerStatsResponse

func (*Dota2) RequestPlusWeeklyChallengeResult

func (d *Dota2) RequestPlusWeeklyChallengeResult(
	ctx context.Context,
	eventID protocol.EEvent,
	week uint32,
) (*protocol.CMsgClientToGCRequestPlusWeeklyChallengeResultResponse, error)

RequestPlusWeeklyChallengeResult requests a plus weekly challenge result. Request ID: k_EMsgClientToGCRequestPlusWeeklyChallengeResult Response ID: k_EMsgClientToGCRequestPlusWeeklyChallengeResultResponse Request type: CMsgClientToGCRequestPlusWeeklyChallengeResult Response type: CMsgClientToGCRequestPlusWeeklyChallengeResultResponse

func (*Dota2) RequestPrivateChatInfo

func (d *Dota2) RequestPrivateChatInfo(
	ctx context.Context,
	privateChatChannelName string,
) (*protocol.CMsgGCToClientPrivateChatInfoResponse, error)

RequestPrivateChatInfo requests a private chat info. Request ID: k_EMsgClientToGCPrivateChatInfoRequest Response ID: k_EMsgGCToClientPrivateChatInfoResponse Request type: CMsgClientToGCPrivateChatInfoRequest Response type: CMsgGCToClientPrivateChatInfoResponse

func (*Dota2) RequestPrivateMetadataKey

func (d *Dota2) RequestPrivateMetadataKey(
	ctx context.Context,
	matchID uint64,
) (*protocol.CMsgPrivateMetadataKeyResponse, error)

RequestPrivateMetadataKey requests a private metadata key. Request ID: k_EMsgPrivateMetadataKeyRequest Response ID: k_EMsgPrivateMetadataKeyResponse Request type: CMsgPrivateMetadataKeyRequest Response type: CMsgPrivateMetadataKeyResponse

func (*Dota2) RequestProfile

func (d *Dota2) RequestProfile(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgProfileResponse, error)

RequestProfile requests a profile. Request ID: k_EMsgProfileRequest Response ID: k_EMsgProfileResponse Request type: CMsgProfileRequest Response type: CMsgProfileResponse

func (*Dota2) RequestPullTabs

func (d *Dota2) RequestPullTabs(
	ctx context.Context,
	eventID uint32,
) (*protocol.CMsgGCToClientPullTabsResponse, error)

RequestPullTabs requests pull tabs. Request ID: k_EMsgClientToGCPullTabsRequest Response ID: k_EMsgGCToClientPullTabsResponse Request type: CMsgClientToGCPullTabsRequest Response type: CMsgGCToClientPullTabsResponse

func (*Dota2) RequestQuickStats

func (d *Dota2) RequestQuickStats(
	ctx context.Context,
	playerAccountID uint32,
	heroID uint32,
	itemID uint32,
	leagueID uint32,
) (*protocol.CMsgDOTAClientToGCQuickStatsResponse, error)

RequestQuickStats requests quick stats. Request ID: k_EMsgClientToGCQuickStatsRequest Response ID: k_EMsgClientToGCQuickStatsResponse Request type: CMsgDOTAClientToGCQuickStatsRequest Response type: CMsgDOTAClientToGCQuickStatsResponse

func (*Dota2) RequestReportCounts

func (d *Dota2) RequestReportCounts(
	ctx context.Context,
	targetAccountID uint32,
) (*protocol.CMsgDOTAReportCountsResponse, error)

RequestReportCounts requests to check if the target report counts. Request ID: k_EMsgGCReportCountsRequest Response ID: k_EMsgGCReportCountsResponse Request type: CMsgDOTAReportCountsRequest Response type: CMsgDOTAReportCountsResponse

func (*Dota2) RequestReportsRemaining

func (d *Dota2) RequestReportsRemaining(
	ctx context.Context,
) (*protocol.CMsgDOTAReportsRemainingResponse, error)

RequestReportsRemaining requests a reports remaining. Request ID: k_EMsgGCReportsRemainingRequest Response ID: k_EMsgGCReportsRemainingResponse Request type: CMsgDOTAReportsRemainingRequest Response type: CMsgDOTAReportsRemainingResponse

func (*Dota2) RequestSaveGames

func (d *Dota2) RequestSaveGames(
	ctx context.Context,
	serverRegion uint32,
) (*protocol.CMsgDOTARequestSaveGamesResponse, error)

RequestSaveGames requests save games. Request ID: k_EMsgGCRequestSaveGames Response ID: k_EMsgGCRequestSaveGamesResponse Request type: CMsgDOTARequestSaveGames Response type: CMsgDOTARequestSaveGamesResponse

func (*Dota2) RequestSelectionPriorityChoice

RequestSelectionPriorityChoice requests a selection priority choice. Request ID: k_EMsgSelectionPriorityChoiceRequest Response ID: k_EMsgSelectionPriorityChoiceResponse Request type: CMsgDOTASelectionPriorityChoiceRequest Response type: CMsgDOTASelectionPriorityChoiceResponse

func (*Dota2) RequestSetPlayerCardRoster

func (d *Dota2) RequestSetPlayerCardRoster(
	ctx context.Context,
	leagueID uint32,
	timestamp uint32,
	slot uint32,
	playerCardItemID uint64,
	eventID uint32,
) (*protocol.CMsgClientToGCSetPlayerCardRosterResponse, error)

RequestSetPlayerCardRoster requests to check if the target set player card roster. Request ID: k_EMsgClientToGCSetPlayerCardRosterRequest Response ID: k_EMsgClientToGCSetPlayerCardRosterResponse Request type: CMsgClientToGCSetPlayerCardRosterRequest Response type: CMsgClientToGCSetPlayerCardRosterResponse

func (*Dota2) RequestSlarkGameResult

func (d *Dota2) RequestSlarkGameResult(
	ctx context.Context,
	eventID protocol.EEvent,
	slotChosen uint32,
	week uint32,
) (*protocol.CMsgClientToGCRequestSlarkGameResultResponse, error)

RequestSlarkGameResult requests a slark game result. Request ID: k_EMsgClientToGCRequestSlarkGameResult Response ID: k_EMsgClientToGCRequestSlarkGameResultResponse Request type: CMsgClientToGCRequestSlarkGameResult Response type: CMsgClientToGCRequestSlarkGameResultResponse

func (*Dota2) RequestSocialFeed

func (d *Dota2) RequestSocialFeed(
	ctx context.Context,
	accountID uint32,
	selfOnly bool,
) (*protocol.CMsgSocialFeedResponse, error)

RequestSocialFeed requests a social feed. Request ID: k_EMsgClientToGCRequestSocialFeed Response ID: k_EMsgClientToGCRequestSocialFeedResponse Request type: CMsgSocialFeedRequest Response type: CMsgSocialFeedResponse

func (*Dota2) RequestSocialFeedComments

func (d *Dota2) RequestSocialFeedComments(
	ctx context.Context,
	feedEventID uint64,
) (*protocol.CMsgSocialFeedCommentsResponse, error)

RequestSocialFeedComments requests social feed comments. Request ID: k_EMsgClientToGCRequestSocialFeedComments Response ID: k_EMsgClientToGCRequestSocialFeedCommentsResponse Request type: CMsgSocialFeedCommentsRequest Response type: CMsgSocialFeedCommentsResponse

func (*Dota2) RequestSocialFeedPostComment

func (d *Dota2) RequestSocialFeedPostComment(
	ctx context.Context,
	eventID uint64,
	comment string,
) (*protocol.CMsgGCToClientSocialFeedPostCommentResponse, error)

RequestSocialFeedPostComment requests a social feed post comment. Request ID: k_EMsgClientToGCSocialFeedPostCommentRequest Response ID: k_EMsgGCToClientSocialFeedPostCommentResponse Request type: CMsgClientToGCSocialFeedPostCommentRequest Response type: CMsgGCToClientSocialFeedPostCommentResponse

func (*Dota2) RequestSocialFeedPostMessage

func (d *Dota2) RequestSocialFeedPostMessage(
	ctx context.Context,
	message string,
	matchID uint64,
	matchTimestamp uint32,
) (*protocol.CMsgGCToClientSocialFeedPostMessageResponse, error)

RequestSocialFeedPostMessage requests a social feed post message. Request ID: k_EMsgClientToGCSocialFeedPostMessageRequest Response ID: k_EMsgGCToClientSocialFeedPostMessageResponse Request type: CMsgClientToGCSocialFeedPostMessageRequest Response type: CMsgGCToClientSocialFeedPostMessageResponse

func (*Dota2) RequestSocialMatchDetails

func (d *Dota2) RequestSocialMatchDetails(
	ctx context.Context,
	matchID uint64,
	paginationTimestamp uint32,
) (*protocol.CMsgGCToClientSocialMatchDetailsResponse, error)

RequestSocialMatchDetails requests social match details. Request ID: k_EMsgClientToGCSocialMatchDetailsRequest Response ID: k_EMsgGCToClientSocialMatchDetailsResponse Request type: CMsgClientToGCSocialMatchDetailsRequest Response type: CMsgGCToClientSocialMatchDetailsResponse

func (*Dota2) RequestSocialMatchPostComment

func (d *Dota2) RequestSocialMatchPostComment(
	ctx context.Context,
	matchID uint64,
	comment string,
) (*protocol.CMsgGCToClientSocialMatchPostCommentResponse, error)

RequestSocialMatchPostComment requests a social match post comment. Request ID: k_EMsgClientToGCSocialMatchPostCommentRequest Response ID: k_EMsgGCToClientSocialMatchPostCommentResponse Request type: CMsgClientToGCSocialMatchPostCommentRequest Response type: CMsgGCToClientSocialMatchPostCommentResponse

func (*Dota2) RequestSteamDatagramTicket

func (d *Dota2) RequestSteamDatagramTicket(
	ctx context.Context,
	serverSteamID steamid.SteamId,
) (*protocol.CMsgClientToGCRequestSteamDatagramTicketResponse, error)

RequestSteamDatagramTicket requests a steam datagram ticket. Request ID: k_EMsgClientToGCRequestSteamDatagramTicket Response ID: k_EMsgClientToGCRequestSteamDatagramTicketResponse Request type: CMsgClientToGCRequestSteamDatagramTicket Response type: CMsgClientToGCRequestSteamDatagramTicketResponse

func (*Dota2) RequestStorePromoPages

func (d *Dota2) RequestStorePromoPages(
	ctx context.Context,
	versionSeen uint32,
) (*protocol.CMsgDOTAStorePromoPagesResponse, error)

RequestStorePromoPages requests store promo pages. Request ID: k_EMsgGCStorePromoPagesRequest Response ID: k_EMsgGCStorePromoPagesResponse Request type: CMsgDOTAStorePromoPagesRequest Response type: CMsgDOTAStorePromoPagesResponse

func (*Dota2) RequestSubmitPlayerAvoid

func (d *Dota2) RequestSubmitPlayerAvoid(
	ctx context.Context,
	targetAccountID uint32,
	lobbyID uint64,
) (*protocol.CMsgDOTASubmitPlayerAvoidRequestResponse, error)

RequestSubmitPlayerAvoid requests to check if the target submit player avoid. Request ID: k_EMsgGCSubmitPlayerAvoidRequest Response ID: k_EMsgGCSubmitPlayerAvoidRequestResponse Request type: CMsgDOTASubmitPlayerAvoidRequest Response type: CMsgDOTASubmitPlayerAvoidRequestResponse

func (*Dota2) RequestTeamInfoFantasyByFantasyLeagueID

func (d *Dota2) RequestTeamInfoFantasyByFantasyLeagueID(
	fantasyLeagueID uint32,
)

RequestTeamInfoFantasyByFantasyLeagueID requests a team info fantasy by fantasy league id. Request ID: k_EMsgGCFantasyTeamInfoRequestByFantasyLeagueID Request type: CMsgDOTAFantasyTeamInfoRequestByFantasyLeagueID

func (*Dota2) RequestTeamInfoFantasyByOwnerAccountID

func (d *Dota2) RequestTeamInfoFantasyByOwnerAccountID(
	ownerAccountID uint32,
)

RequestTeamInfoFantasyByOwnerAccountID requests a team info fantasy by owner account id. Request ID: k_EMsgGCFantasyTeamInfoRequestByOwnerAccountID Request type: CMsgDOTAFantasyTeamInfoRequestByOwnerAccountID

func (*Dota2) RequestTeammateStats

func (d *Dota2) RequestTeammateStats(
	ctx context.Context,
) (*protocol.CMsgClientToGCTeammateStatsResponse, error)

RequestTeammateStats requests teammate stats. Request ID: k_EMsgClientToGCTeammateStatsRequest Response ID: k_EMsgClientToGCTeammateStatsResponse Request type: CMsgClientToGCTeammateStatsRequest Response type: CMsgClientToGCTeammateStatsResponse

func (*Dota2) RequestTopFriendMatches

func (d *Dota2) RequestTopFriendMatches(
	ctx context.Context,
) (*protocol.CMsgGCToClientTopFriendMatchesResponse, error)

RequestTopFriendMatches requests top friend matches. Request ID: k_EMsgClientToGCTopFriendMatchesRequest Response ID: k_EMsgGCToClientTopFriendMatchesResponse Request type: CMsgClientToGCTopFriendMatchesRequest Response type: CMsgGCToClientTopFriendMatchesResponse

func (*Dota2) RequestTopLeagueMatches

func (d *Dota2) RequestTopLeagueMatches(
	ctx context.Context,
) (*protocol.CMsgGCToClientTopLeagueMatchesResponse, error)

RequestTopLeagueMatches requests top league matches. Request ID: k_EMsgClientToGCTopLeagueMatchesRequest Response ID: k_EMsgGCToClientTopLeagueMatchesResponse Request type: CMsgClientToGCTopLeagueMatchesRequest Response type: CMsgGCToClientTopLeagueMatchesResponse

func (*Dota2) RequestTransferSeasonalMMR

func (d *Dota2) RequestTransferSeasonalMMR(
	ctx context.Context,
	isParty bool,
) (*protocol.CMsgClientToGCTransferSeasonalMMRResponse, error)

RequestTransferSeasonalMMR requests to check if the target transfer seasonal mmr. Request ID: k_EMsgClientToGCTransferSeasonalMMRRequest Response ID: k_EMsgClientToGCTransferSeasonalMMRResponse Request type: CMsgClientToGCTransferSeasonalMMRRequest Response type: CMsgClientToGCTransferSeasonalMMRResponse

func (*Dota2) RequestUnanchorPhoneNumber

func (d *Dota2) RequestUnanchorPhoneNumber(
	ctx context.Context,
) (*protocol.CMsgDOTAUnanchorPhoneNumberResponse, error)

RequestUnanchorPhoneNumber requests a unanchor phone number. Request ID: k_EMsgUnanchorPhoneNumberRequest Response ID: k_EMsgUnanchorPhoneNumberResponse Request type: CMsgDOTAUnanchorPhoneNumberRequest Response type: CMsgDOTAUnanchorPhoneNumberResponse

func (*Dota2) RequestWagering

func (d *Dota2) RequestWagering(
	ctx context.Context,
	eventID uint32,
) (*protocol.CMsgGCToClientWageringResponse, error)

RequestWagering requests a wagering. Request ID: k_EMsgClientToGCWageringRequest Response ID: k_EMsgGCToClientWageringResponse Request type: CMsgClientToGCWageringRequest Response type: CMsgGCToClientWageringResponse

func (*Dota2) RerollPlayerChallenge

func (d *Dota2) RerollPlayerChallenge(
	eventID protocol.EEvent,
	sequenceID uint32,
	heroID uint32,
)

RerollPlayerChallenge rerolls a player challenge. Request ID: k_EMsgClientToGCRerollPlayerChallenge Request type: CMsgClientToGCRerollPlayerChallenge

func (*Dota2) ReserveEditorItemItemDef

func (d *Dota2) ReserveEditorItemItemDef(
	ctx context.Context,
	defIndex uint32,
	username string,
) (*protocol.CMsgGCItemEditorReserveItemDefResponse, error)

ReserveEditorItemItemDef reserves a editor item item def. Request ID: k_EMsgGCItemEditorReserveItemDef Response ID: k_EMsgGCItemEditorReserveItemDefResponse Request type: CMsgGCItemEditorReserveItemDef Response type: CMsgGCItemEditorReserveItemDefResponse

func (*Dota2) RespondPartyInvite

func (d *Dota2) RespondPartyInvite(partyId uint64, accept bool)

RespondPartyInvite attempts to respond to a party invite.

func (*Dota2) RespondToTeamInvite

func (d *Dota2) RespondToTeamInvite(
	result protocol.ETeamInviteResult,
)

RespondToTeamInvite is undocumented. Request ID: k_EMsgGCTeamInvite_InviteeResponseToGC Request type: CMsgDOTATeamInvite_InviteeResponseToGC

func (*Dota2) RetrieveMatchVote

func (d *Dota2) RetrieveMatchVote(
	ctx context.Context,
	matchID uint64,
	incremental uint32,
) (*protocol.CMsgMatchVoteResponse, error)

RetrieveMatchVote retrieves a match vote. Request ID: k_EMsgRetrieveMatchVote Response ID: k_EMsgRetrieveMatchVoteResponse Request type: CMsgRetrieveMatchVote Response type: CMsgMatchVoteResponse

func (*Dota2) SayHello

func (d *Dota2) SayHello(haveCacheVersions ...*gcsdkm.CMsgSOCacheHaveVersion)

SayHello says hello to the Dota2 server, in an attempt to get a session.

func (*Dota2) SelectCompendiumInGamePrediction

SelectCompendiumInGamePrediction selects a compendium in game prediction. Request ID: k_EMsgClientToGCSelectCompendiumInGamePrediction Response ID: k_EMsgClientToGCSelectCompendiumInGamePredictionResponse Request type: CMsgClientToGCSelectCompendiumInGamePrediction Response type: CMsgClientToGCSelectCompendiumInGamePredictionResponse

func (*Dota2) SendAddTI6TreeProgress

func (d *Dota2) SendAddTI6TreeProgress(
	trees uint32,
)

SendAddTI6TreeProgress sends add ti 6 tree progress. Request ID: k_EMsgClientToGCAddTI6TreeProgress Request type: CMsgClientToGCAddTI6TreeProgress

func (*Dota2) SendAllStarStats

func (d *Dota2) SendAllStarStats(
	playerStats []*protocol.CMsgAllStarStats_PlayerStats,
)

SendAllStarStats sends all star stats. Request ID: k_EMsgAllStarStats Request type: CMsgAllStarStats

func (*Dota2) SendBalancedShuffleLobby

func (d *Dota2) SendBalancedShuffleLobby()

SendBalancedShuffleLobby sends a balanced shuffle lobby. Request ID: k_EMsgGCBalancedShuffleLobby Request type: CMsgBalancedShuffleLobby

func (*Dota2) SendCavernCrawlClaimRoom

func (d *Dota2) SendCavernCrawlClaimRoom(
	ctx context.Context,
	eventID uint32,
	roomID uint32,
	mapVariant uint32,
) (*protocol.CMsgClientToGCCavernCrawlClaimRoomResponse, error)

SendCavernCrawlClaimRoom sends a cavern crawl claim room. Request ID: k_EMsgClientToGCCavernCrawlClaimRoom Response ID: k_EMsgClientToGCCavernCrawlClaimRoomResponse Request type: CMsgClientToGCCavernCrawlClaimRoom Response type: CMsgClientToGCCavernCrawlClaimRoomResponse

func (*Dota2) SendCavernCrawlUseItemOnPath

func (d *Dota2) SendCavernCrawlUseItemOnPath(
	ctx context.Context,
	eventID uint32,
	pathID uint32,
	itemType uint32,
	mapVariant uint32,
) (*protocol.CMsgClientToGCCavernCrawlUseItemOnPathResponse, error)

SendCavernCrawlUseItemOnPath sends a cavern crawl use item on path. Request ID: k_EMsgClientToGCCavernCrawlUseItemOnPath Response ID: k_EMsgClientToGCCavernCrawlUseItemOnPathResponse Request type: CMsgClientToGCCavernCrawlUseItemOnPath Response type: CMsgClientToGCCavernCrawlUseItemOnPathResponse

func (*Dota2) SendCavernCrawlUseItemOnRoom

func (d *Dota2) SendCavernCrawlUseItemOnRoom(
	ctx context.Context,
	eventID uint32,
	roomID uint32,
	itemType uint32,
	mapVariant uint32,
) (*protocol.CMsgClientToGCCavernCrawlUseItemOnRoomResponse, error)

SendCavernCrawlUseItemOnRoom sends a cavern crawl use item on room. Request ID: k_EMsgClientToGCCavernCrawlUseItemOnRoom Response ID: k_EMsgClientToGCCavernCrawlUseItemOnRoomResponse Request type: CMsgClientToGCCavernCrawlUseItemOnRoom Response type: CMsgClientToGCCavernCrawlUseItemOnRoomResponse

func (*Dota2) SendChannelMessage

func (d *Dota2) SendChannelMessage(channelID uint64, message string)

SendChannelMessage attempts to send a message in a channel, text-only. Use SendChatMessage for more fine-grained control.

func (*Dota2) SendChatChannelMemberUpdate

func (d *Dota2) SendChatChannelMemberUpdate(
	channelID uint64,
	leftSteamIDs []uint64,
	joinedMembers []*protocol.CMsgDOTAChatChannelMemberUpdate_JoinedMember,
)

SendChatChannelMemberUpdate sends a chat channel member update. Request ID: k_EMsgDOTAChatChannelMemberUpdate Request type: CMsgDOTAChatChannelMemberUpdate

func (*Dota2) SendChatMessage

func (d *Dota2) SendChatMessage(
	req *protocol.CMsgDOTAChatMessage,
)

SendChatMessage sends a chat message. Request ID: k_EMsgGCChatMessage Request type: CMsgDOTAChatMessage

func (*Dota2) SendClaimEventAction

func (d *Dota2) SendClaimEventAction(
	ctx context.Context,
	eventID uint32,
	actionID uint32,
	quantity uint32,
	data protocol.CMsgDOTAClaimEventActionData,
) (*protocol.CMsgDOTAClaimEventActionResponse, error)

SendClaimEventAction sends a claim event action. Request ID: k_EMsgDOTAClaimEventAction Response ID: k_EMsgDOTAClaimEventActionResponse Request type: CMsgDOTAClaimEventAction Response type: CMsgDOTAClaimEventActionResponse

func (*Dota2) SendClaimEventActionUsingItem

func (d *Dota2) SendClaimEventActionUsingItem(
	ctx context.Context,
	eventID uint32,
	actionID uint32,
	itemID uint64,
	quantity uint32,
) (*protocol.CMsgClientToGCClaimEventActionUsingItemResponse, error)

SendClaimEventActionUsingItem sends a claim event action using item. Request ID: k_EMsgClientToGCClaimEventActionUsingItem Response ID: k_EMsgClientToGCClaimEventActionUsingItemResponse Request type: CMsgClientToGCClaimEventActionUsingItem Response type: CMsgClientToGCClaimEventActionUsingItemResponse

func (*Dota2) SendClientProvideSurveyResult

func (d *Dota2) SendClientProvideSurveyResult(
	responses []*protocol.CMsgClientProvideSurveyResult_Response,
	surveyKey uint64,
)

SendClientProvideSurveyResult sends a client provide survey result. Request ID: k_EMsgClientProvideSurveyResult Request type: CMsgClientProvideSurveyResult

func (*Dota2) SendCustomGameClientFinishedLoading

func (d *Dota2) SendCustomGameClientFinishedLoading(
	req *protocol.CMsgDOTACustomGameClientFinishedLoading,
)

SendCustomGameClientFinishedLoading sends a custom game client finished loading. Request ID: k_EMsgCustomGameClientFinishedLoading Request type: CMsgDOTACustomGameClientFinishedLoading

func (*Dota2) SendCustomGameListenServerStartedLoading

func (d *Dota2) SendCustomGameListenServerStartedLoading(
	lobbyID uint64,
	customGameID uint64,
	lobbyMembers []uint32,
	startTime uint32,
)

SendCustomGameListenServerStartedLoading sends a custom game listen server started loading. Request ID: k_EMsgCustomGameListenServerStartedLoading Request type: CMsgDOTACustomGameListenServerStartedLoading

func (*Dota2) SendDetailedGameStats

SendDetailedGameStats sends detailed game stats. Request ID: k_EMsgDetailedGameStats Request type: CMsgDetailedGameStats

func (*Dota2) SendDevResetEventState

func (d *Dota2) SendDevResetEventState(
	ctx context.Context,
	eventID protocol.EEvent,
	removeAudit bool,
) (*protocol.CMsgDevResetEventStateResponse, error)

SendDevResetEventState sends a dev reset event state. Request ID: k_EMsgDevResetEventState Response ID: k_EMsgDevResetEventStateResponse Request type: CMsgDevResetEventState Response type: CMsgDevResetEventStateResponse

func (*Dota2) SendFriendRecruitInviteAcceptDecline

func (d *Dota2) SendFriendRecruitInviteAcceptDecline(
	accepted bool,
	accountID uint32,
)

SendFriendRecruitInviteAcceptDecline sends a friend recruit invite accept decline. Request ID: k_EMsgDOTAFriendRecruitInviteAcceptDecline Request type: CMsgDOTAFriendRecruitInviteAcceptDecline

func (*Dota2) SendFriendRecruits

func (d *Dota2) SendFriendRecruits(
	recruits []uint32,
)

SendFriendRecruits sends friend recruits. Request ID: k_EMsgDOTASendFriendRecruits Request type: CMsgDOTASendFriendRecruits

func (*Dota2) SendH264Unsupported

func (d *Dota2) SendH264Unsupported()

SendH264Unsupported sends a h 264 unsupported. Request ID: k_EMsgClientToGCH264Unsupported Request type: CMsgClientToGCH264Unsupported

func (*Dota2) SendHasPlayerVotedForMVP

func (d *Dota2) SendHasPlayerVotedForMVP(
	ctx context.Context,
	matchID uint64,
) (*protocol.CMsgClientToGCHasPlayerVotedForMVPResponse, error)

SendHasPlayerVotedForMVP sends a has player voted for mvp. Request ID: k_EMsgClientToGCHasPlayerVotedForMVP Response ID: k_EMsgClientToGCHasPlayerVotedForMVPResponse Request type: CMsgClientToGCHasPlayerVotedForMVP Response type: CMsgClientToGCHasPlayerVotedForMVPResponse

func (*Dota2) SendHeroGlobalDataAllHeroes

func (d *Dota2) SendHeroGlobalDataAllHeroes(
	heroes []*protocol.CMsgHeroGlobalDataResponse,
)

SendHeroGlobalDataAllHeroes sends hero global data all heroes. Request ID: k_EMsgHeroGlobalDataAllHeroes Request type: CMsgHeroGlobalDataAllHeroes

func (*Dota2) SendInitialQuestionnaireResponse

func (d *Dota2) SendInitialQuestionnaireResponse(
	initialSkill uint32,
)

SendInitialQuestionnaireResponse sends a initial questionnaire response. Request ID: k_EMsgGCInitialQuestionnaireResponse Request type: CMsgInitialQuestionnaireResponse

func (*Dota2) SendLatestConductScorecard

func (d *Dota2) SendLatestConductScorecard(
	req *protocol.CMsgPlayerConductScorecard,
)

SendLatestConductScorecard sends a latest conduct scorecard. Request ID: k_EMsgClientToGCLatestConductScorecard Request type: CMsgPlayerConductScorecard

func (*Dota2) SendLeagueAvailableLobbyNodes

func (d *Dota2) SendLeagueAvailableLobbyNodes(
	nodeInfos []*protocol.CMsgDOTALeagueAvailableLobbyNodes_NodeInfo,
)

SendLeagueAvailableLobbyNodes sends league available lobby nodes. Request ID: k_EMsgDOTALeagueAvailableLobbyNodes Request type: CMsgDOTALeagueAvailableLobbyNodes

func (*Dota2) SendLobbyBattleCupVictory

func (d *Dota2) SendLobbyBattleCupVictory(
	req *protocol.CMsgBattleCupVictory,
)

SendLobbyBattleCupVictory sends a lobby battle cup victory. Request ID: k_EMsgLobbyBattleCupVictory Request type: CMsgBattleCupVictory

func (*Dota2) SendLobbyEventGameDetails

func (d *Dota2) SendLobbyEventGameDetails(
	kvData []byte,
)

SendLobbyEventGameDetails sends lobby event game details. Request ID: k_EMsgLobbyEventGameDetails Request type: CMsgLobbyEventGameDetails

func (*Dota2) SendLobbyEventPoints

func (d *Dota2) SendLobbyEventPoints(
	eventID uint32,
	accountPoints []*protocol.CMsgLobbyEventPoints_AccountPoints,
)

SendLobbyEventPoints sends lobby event points. Request ID: k_EMsgLobbyEventPoints Request type: CMsgLobbyEventPoints

func (*Dota2) SendLobbyPlayerPlusSubscriptionData

func (d *Dota2) SendLobbyPlayerPlusSubscriptionData(
	heroBadges []*protocol.CMsgLobbyPlayerPlusSubscriptionData_HeroBadge,
)

SendLobbyPlayerPlusSubscriptionData sends a lobby player plus subscription data. Request ID: k_EMsgLobbyPlayerPlusSubscriptionData Request type: CMsgLobbyPlayerPlusSubscriptionData

func (*Dota2) SendLobbyPlaytestDetails

func (d *Dota2) SendLobbyPlaytestDetails(
	jSON string,
)

SendLobbyPlaytestDetails sends lobby playtest details. Request ID: k_EMsgLobbyPlaytestDetails Request type: CMsgLobbyPlaytestDetails

func (*Dota2) SendMMInfo

func (d *Dota2) SendMMInfo(
	laneSelectionFlags uint32,
	highPriorityDisabled bool,
)

SendMMInfo sends a mm info. Request ID: k_EMsgClientToGCMMInfo Request type: CMsgClientToGCMMInfo

func (*Dota2) SendManageFavorites

SendManageFavorites sends manage favorites. Request ID: k_EMsgClientToGCManageFavorites Response ID: k_EMsgGCToClientManageFavoritesResponse Request type: CMsgClientToGCManageFavorites Response type: CMsgGCToClientManageFavoritesResponse

func (*Dota2) SendMatchMatchmakingStats

func (d *Dota2) SendMatchMatchmakingStats(
	averageQueueTime uint32,
	maximumQueueTime uint32,
	behaviorScoreVariance protocol.EMatchBehaviorScoreVariance,
)

SendMatchMatchmakingStats sends match matchmaking stats. Request ID: k_EMsgMatchMatchmakingStats Request type: CMsgMatchMatchmakingStats

func (*Dota2) SendMergePartyInvite

func (d *Dota2) SendMergePartyInvite(
	otherGroupID uint64,
)

SendMergePartyInvite sends a merge party invite. Request ID: k_EMsgClientToGCMergePartyInvite Request type: CMsgDOTAGroupMergeInvite

func (*Dota2) SendNeutralItemStats

func (d *Dota2) SendNeutralItemStats(
	neutralItems []*protocol.CMsgNeutralItemStats_NeutralItem,
)

SendNeutralItemStats sends neutral item stats. Request ID: k_EMsgNeutralItemStats Request type: CMsgNeutralItemStats

func (*Dota2) SendPartyReadyCheck

func (d *Dota2) SendPartyReadyCheck(
	ctx context.Context,
) (*protocol.CMsgPartyReadyCheckResponse, error)

SendPartyReadyCheck sends a party ready check. Request ID: k_EMsgPartyReadyCheckRequest Response ID: k_EMsgPartyReadyCheckResponse Request type: CMsgPartyReadyCheckRequest Response type: CMsgPartyReadyCheckResponse

func (*Dota2) SendPeriodicResourceUpdated

func (d *Dota2) SendPeriodicResourceUpdated(
	periodicResourceKey protocol.CMsgDOTAGetPeriodicResource,
	periodicResourceValue protocol.CMsgDOTAGetPeriodicResourceResponse,
)

SendPeriodicResourceUpdated sends a periodic resource updated. Request ID: k_EMsgDOTAPeriodicResourceUpdated Request type: CMsgDOTAPeriodicResourceUpdated

func (*Dota2) SendPingData

func (d *Dota2) SendPingData(
	relayCodes []uint32,
	relayPings []uint32,
	regionCodes []uint32,
	regionPings []uint32,
	regionPingFailedBitmask uint32,
)

SendPingData sends a ping data. Request ID: k_EMsgClientToGCPingData Request type: CMsgClientPingData

func (*Dota2) SendPresentedClientTerminateDlg

func (d *Dota2) SendPresentedClientTerminateDlg()

SendPresentedClientTerminateDlg sends a presented client terminate dlg. Request ID: k_EMsgPresentedClientTerminateDlg Request type: CMsgPresentedClientTerminateDlg

func (*Dota2) SendProfileUpdate

func (d *Dota2) SendProfileUpdate(
	ctx context.Context,
	backgroundItemID uint64,
	featuredHeroIDs []uint32,
) (*protocol.CMsgProfileUpdateResponse, error)

SendProfileUpdate sends a profile update. Request ID: k_EMsgProfileUpdate Response ID: k_EMsgProfileUpdateResponse Request type: CMsgProfileUpdate Response type: CMsgProfileUpdateResponse

func (*Dota2) SendReadyUp

func (d *Dota2) SendReadyUp(
	state protocol.DOTALobbyReadyState,
	readyUpKey uint64,
	hardwareSpecs protocol.CDOTAClientHardwareSpecs,
)

SendReadyUp sends a ready up. Request ID: k_EMsgGCReadyUp Request type: CMsgReadyUp

func (*Dota2) SendRemoveFilteredPlayer

func (d *Dota2) SendRemoveFilteredPlayer(
	ctx context.Context,
	accountIDToRemove uint32,
) (*protocol.CMsgGCToClientRemoveFilteredPlayerResponse, error)

SendRemoveFilteredPlayer sends a remove filtered player. Request ID: k_EMsgClientToGCRemoveFilteredPlayer Response ID: k_EMsgGCToClientRemoveFilteredPlayerResponse Request type: CMsgClientToGCRemoveFilteredPlayer Response type: CMsgGCToClientRemoveFilteredPlayerResponse

func (*Dota2) SendSpectatorLobbyGameDetails

func (d *Dota2) SendSpectatorLobbyGameDetails(
	req *protocol.CMsgSpectatorLobbyGameDetails,
)

SendSpectatorLobbyGameDetails sends spectator lobby game details. Request ID: k_EMsgSpectatorLobbyGameDetails Request type: CMsgSpectatorLobbyGameDetails

func (*Dota2) SendSuccessfulHero

func (d *Dota2) SendSuccessfulHero(
	heroID uint32,
	winPercent float32,
	longestStreak uint32,
)

SendSuccessfulHero sends a successful hero. Request ID: k_EMsgSuccessfulHero Request type: CMsgSuccessfulHero

func (*Dota2) SendSuspiciousActivity

func (d *Dota2) SendSuspiciousActivity(
	appData uint64,
)

SendSuspiciousActivity sends a suspicious activity. Request ID: k_EMsgClientToGCSuspiciousActivity Request type: CMsgClientToGCSuspiciousActivity

func (*Dota2) SendTeamInvite_GCResponseToInvitee

func (d *Dota2) SendTeamInvite_GCResponseToInvitee(
	result protocol.ETeamInviteResult,
	teamName string,
)

SendTeamInvite_GCResponseToInvitee sends a team invite _ gc response to invitee. Request ID: k_EMsgGCTeamInvite_GCResponseToInvitee Request type: CMsgDOTATeamInvite_GCResponseToInvitee

func (*Dota2) SendUpdatePartyBeacon

func (d *Dota2) SendUpdatePartyBeacon(
	action protocol.CMsgClientToGCUpdatePartyBeacon_Action,
)

SendUpdatePartyBeacon sends a update party beacon. Request ID: k_EMsgClientToGCUpdatePartyBeacon Request type: CMsgClientToGCUpdatePartyBeacon

func (*Dota2) SendVerifyFavoritePlayers

func (d *Dota2) SendVerifyFavoritePlayers(
	ctx context.Context,
	accountIDs []uint32,
) (*protocol.CMsgGCToClientVerifyFavoritePlayersResponse, error)

SendVerifyFavoritePlayers sends verify favorite players. Request ID: k_EMsgClientToGCVerifyFavoritePlayers Response ID: k_EMsgGCToClientVerifyFavoritePlayersResponse Request type: CMsgClientToGCVerifyFavoritePlayers Response type: CMsgGCToClientVerifyFavoritePlayersResponse

func (*Dota2) SendVerifyIntegrity

func (d *Dota2) SendVerifyIntegrity(
	currency uint32,
	additionalUserMessage uint32,
	acked []byte,
)

SendVerifyIntegrity sends a verify integrity. Request ID: k_EMsgClientToGCVerifyIntegrity Request type: CMsgClientToGCVerifyIntegrity

func (*Dota2) SendWatchGame

func (d *Dota2) SendWatchGame(
	ctx context.Context,
	serverSteamid steamid.SteamId,
	watchServerSteamid steamid.SteamId,
	lobbyID uint64,
	regions []uint32,
) (*protocol.CMsgWatchGameResponse, error)

SendWatchGame sends a watch game. Request ID: k_EMsgGCWatchGame Response ID: k_EMsgGCWatchGameResponse Request type: CMsgWatchGame Response type: CMsgWatchGameResponse

func (*Dota2) SetAdditionalEquips

SetAdditionalEquips sets additional equips. Request ID: k_EMsgClientToGCSetAdditionalEquips Response ID: k_EMsgClientToGCSetAdditionalEquipsResponse Request type: CMsgClientToGCSetAdditionalEquips Response type: CMsgClientToGCSetAdditionalEquipsResponse

func (*Dota2) SetCompendiumSelection

func (d *Dota2) SetCompendiumSelection(
	ctx context.Context,
	selectionIndex uint32,
	selection uint32,
	leagueid uint32,
) (*protocol.CMsgDOTACompendiumSelectionResponse, error)

SetCompendiumSelection sets a compendium selection. Request ID: k_EMsgGCCompendiumSetSelection Response ID: k_EMsgGCCompendiumSetSelectionResponse Request type: CMsgDOTACompendiumSelection Response type: CMsgDOTACompendiumSelectionResponse

func (*Dota2) SetFavoriteAllStarPlayer

func (d *Dota2) SetFavoriteAllStarPlayer(
	ctx context.Context,
	playerID uint32,
	eventID uint32,
) (*protocol.CMsgClientToGCSetFavoriteAllStarPlayerResponse, error)

SetFavoriteAllStarPlayer sets a favorite all star player. Request ID: k_EMsgClientToGCSetFavoriteAllStarPlayer Response ID: k_EMsgClientToGCSetFavoriteAllStarPlayerResponse Request type: CMsgClientToGCSetFavoriteAllStarPlayer Response type: CMsgClientToGCSetFavoriteAllStarPlayerResponse

func (*Dota2) SetFavoriteTeam

func (d *Dota2) SetFavoriteTeam(
	teamID uint32,
	eventID uint32,
)

SetFavoriteTeam sets a favorite team. Request ID: k_EMsgDOTASetFavoriteTeam Request type: CMsgDOTASetFavoriteTeam

func (*Dota2) SetLobbyCoach

func (d *Dota2) SetLobbyCoach(
	team protocol.DOTA_GC_TEAM,
)

SetLobbyCoach sets a lobby coach. Request ID: k_EMsgGCPracticeLobbySetCoach Request type: CMsgPracticeLobbySetCoach

func (*Dota2) SetLobbyDetails

func (d *Dota2) SetLobbyDetails(
	req *protocol.CMsgPracticeLobbySetDetails,
)

SetLobbyDetails sets lobby details. Request ID: k_EMsgGCPracticeLobbySetDetails Request type: CMsgPracticeLobbySetDetails

func (*Dota2) SetLobbySlotBotDifficulty

func (d *Dota2) SetLobbySlotBotDifficulty(team gcm.DOTA_GC_TEAM, slot uint32, botDifficulty gcm.DOTABotDifficulty)

SetLobbySlotBotDifficulty sets the difficulty of a slot to a given bot difficulty.

func (*Dota2) SetMapLocationState

func (d *Dota2) SetMapLocationState(
	ctx context.Context,
	locationID int32,
	completed bool,
) (*protocol.CMsgSetMapLocationStateResponse, error)

SetMapLocationState sets a map location state. Request ID: k_EMsgGCSetMapLocationState Response ID: k_EMsgGCSetMapLocationStateResponse Request type: CMsgSetMapLocationState Response type: CMsgSetMapLocationStateResponse

func (*Dota2) SetMatchHistoryAccess

func (d *Dota2) SetMatchHistoryAccess(
	ctx context.Context,
	allow3RdPartyMatchHistory bool,
) (*protocol.CMsgDOTASetMatchHistoryAccessResponse, error)

SetMatchHistoryAccess sets match history access. Request ID: k_EMsgGCSetMatchHistoryAccess Response ID: k_EMsgGCSetMatchHistoryAccessResponse Request type: CMsgDOTASetMatchHistoryAccess Response type: CMsgDOTASetMatchHistoryAccessResponse

func (*Dota2) SetMemberPartyCoach

func (d *Dota2) SetMemberPartyCoach(
	wantsCoach bool,
)

SetMemberPartyCoach sets a member party coach. Request ID: k_EMsgGCPartyMemberSetCoach Request type: CMsgDOTAPartyMemberSetCoach

func (*Dota2) SetPartyBuilderOptions

func (d *Dota2) SetPartyBuilderOptions(
	additionalSlots uint32,
	matchType protocol.MatchType,
	matchgroups uint32,
	language protocol.MatchLanguages,
)

SetPartyBuilderOptions sets party builder options. Request ID: k_EMsgClientToGCSetPartyBuilderOptions Request type: CMsgPartyBuilderOptions

func (*Dota2) SetPartyLeader

func (d *Dota2) SetPartyLeader(
	newLeaderSteamid steamid.SteamId,
)

SetPartyLeader sets a party leader. Request ID: k_EMsgClientToGCSetPartyLeader Request type: CMsgDOTASetGroupLeader

func (*Dota2) SetPartyOpen

func (d *Dota2) SetPartyOpen(
	open bool,
)

SetPartyOpen sets a party open. Request ID: k_EMsgClientToGCSetPartyOpen Request type: CMsgDOTASetGroupOpenStatus

func (*Dota2) SetPlaying

func (d *Dota2) SetPlaying(playing bool)

SetPlaying informs Steam we are playing / not playing Dota 2.

func (*Dota2) SetProfileCardSlots

func (d *Dota2) SetProfileCardSlots(
	slots []*protocol.CMsgClientToGCSetProfileCardSlots_CardSlot,
)

SetProfileCardSlots sets profile card slots. Request ID: k_EMsgClientToGCSetProfileCardSlots Request type: CMsgClientToGCSetProfileCardSlots

func (*Dota2) SetProfilePrivacy

func (d *Dota2) SetProfilePrivacy(
	ctx context.Context,
	profilePrivate bool,
) (*protocol.CMsgDOTASetProfilePrivacyResponse, error)

SetProfilePrivacy sets a profile privacy. Request ID: k_EMsgGCSetProfilePrivacy Response ID: k_EMsgGCSetProfilePrivacyResponse Request type: CMsgDOTASetProfilePrivacy Response type: CMsgDOTASetProfilePrivacyResponse

func (*Dota2) SetSpectatorLobbyDetails

func (d *Dota2) SetSpectatorLobbyDetails(
	lobbyID uint64,
	lobbyName string,
	passKey string,
	gameDetails protocol.CMsgSpectatorLobbyGameDetails,
)

SetSpectatorLobbyDetails sets spectator lobby details. Request ID: k_EMsgClientToGCSetSpectatorLobbyDetails Request type: CMsgSetSpectatorLobbyDetails

func (*Dota2) SpectateFriendGame

func (d *Dota2) SpectateFriendGame(
	ctx context.Context,
	steamID steamid.SteamId,
	live bool,
) (*protocol.CMsgSpectateFriendGameResponse, error)

SpectateFriendGame spectates a friend game. Request ID: k_EMsgGCSpectateFriendGame Response ID: k_EMsgGCSpectateFriendGameResponse Request type: CMsgSpectateFriendGame Response type: CMsgSpectateFriendGameResponse

func (*Dota2) StartFindingMatch

StartFindingMatch starts a finding match. Request ID: k_EMsgGCStartFindingMatch Response ID: k_EMsgGCStartFindingMatchResponse Request type: CMsgStartFindingMatch Response type: CMsgStartFindingMatchResult

func (*Dota2) StartTriviaSession

func (d *Dota2) StartTriviaSession(
	ctx context.Context,
) (*protocol.CMsgDOTAStartTriviaSessionResponse, error)

StartTriviaSession starts a trivia session. Request ID: k_EMsgStartTriviaSession Response ID: k_EMsgStartTriviaSessionResponse Request type: CMsgDOTAStartTriviaSession Response type: CMsgDOTAStartTriviaSessionResponse

func (*Dota2) StopFindingMatch

func (d *Dota2) StopFindingMatch()

StopFindingMatch stops a finding match. Request ID: k_EMsgGCStopFindingMatch Request type: CMsgStopFindingMatch

func (*Dota2) SubmitCoachTeammateRating

func (d *Dota2) SubmitCoachTeammateRating(
	ctx context.Context,
	matchID uint64,
	coachAccountID uint32,
	rating protocol.ECoachTeammateRating,
	reason string,
) (*protocol.CMsgClientToGCSubmitCoachTeammateRatingResponse, error)

SubmitCoachTeammateRating submits a coach teammate rating. Request ID: k_EMsgClientToGCSubmitCoachTeammateRating Response ID: k_EMsgClientToGCSubmitCoachTeammateRatingResponse Request type: CMsgClientToGCSubmitCoachTeammateRating Response type: CMsgClientToGCSubmitCoachTeammateRatingResponse

func (*Dota2) SubmitInfoPlayer

func (d *Dota2) SubmitInfoPlayer(
	ctx context.Context,
	name string,
	countryCode string,
	fantasyRole uint32,
	teamID uint32,
	sponsor string,
) (*protocol.CMsgGCPlayerInfoSubmitResponse, error)

SubmitInfoPlayer submits a info player. Request ID: k_EMsgGCPlayerInfoSubmit Response ID: k_EMsgGCPlayerInfoSubmitResponse Request type: CMsgGCPlayerInfoSubmit Response type: CMsgGCPlayerInfoSubmitResponse

func (*Dota2) SubmitLobbyMVPVote

func (d *Dota2) SubmitLobbyMVPVote(
	ctx context.Context,
	targetAccountID uint32,
) (*protocol.CMsgDOTASubmitLobbyMVPVoteResponse, error)

SubmitLobbyMVPVote submits a lobby mvp vote. Request ID: k_EMsgGCSubmitLobbyMVPVote Response ID: k_EMsgGCSubmitLobbyMVPVoteResponse Request type: CMsgDOTASubmitLobbyMVPVote Response type: CMsgDOTASubmitLobbyMVPVoteResponse

func (*Dota2) SubmitPlayerMatchSurvey

func (d *Dota2) SubmitPlayerMatchSurvey(
	ctx context.Context,
	matchID uint64,
	rating int32,
	flags uint32,
) (*protocol.CMsgClientToGCSubmitPlayerMatchSurveyResponse, error)

SubmitPlayerMatchSurvey submits a player match survey. Request ID: k_EMsgClientToGCSubmitPlayerMatchSurvey Response ID: k_EMsgClientToGCSubmitPlayerMatchSurveyResponse Request type: CMsgClientToGCSubmitPlayerMatchSurvey Response type: CMsgClientToGCSubmitPlayerMatchSurveyResponse

func (*Dota2) SubmitPlayerReport

func (d *Dota2) SubmitPlayerReport(
	ctx context.Context,
	targetAccountID uint32,
	reportFlags uint32,
	lobbyID uint64,
	comment string,
) (*protocol.CMsgDOTASubmitPlayerReportResponse, error)

SubmitPlayerReport submits a player report. Request ID: k_EMsgGCSubmitPlayerReport Response ID: k_EMsgGCSubmitPlayerReportResponse Request type: CMsgDOTASubmitPlayerReport Response type: CMsgDOTASubmitPlayerReportResponse

func (*Dota2) SubmitTriviaQuestionAnswer

func (d *Dota2) SubmitTriviaQuestionAnswer(
	ctx context.Context,
	questionID uint32,
	answerIndex uint32,
) (*protocol.CMsgDOTASubmitTriviaQuestionAnswerResponse, error)

SubmitTriviaQuestionAnswer submits a trivia question answer. Request ID: k_EMsgSubmitTriviaQuestionAnswer Response ID: k_EMsgSubmitTriviaQuestionAnswerResponse Request type: CMsgDOTASubmitTriviaQuestionAnswer Response type: CMsgDOTASubmitTriviaQuestionAnswerResponse

func (*Dota2) SwapFantasyTeamRoster

func (d *Dota2) SwapFantasyTeamRoster(
	ctx context.Context,
	fantasyLeagueID uint32,
	teamIndex uint32,
	timestamp uint32,
	slot1 uint32,
	slot2 uint32,
) (*protocol.CMsgDOTAFantasyTeamRosterSwapResponse, error)

SwapFantasyTeamRoster swaps a fantasy team roster. Request ID: k_EMsgGCFantasyTeamRosterSwapRequest Response ID: k_EMsgGCFantasyTeamRosterSwapResponse Request type: CMsgDOTAFantasyTeamRosterSwapRequest Response type: CMsgDOTAFantasyTeamRosterSwapResponse

func (*Dota2) ToggleLobbyBroadcastChannelCameramanStatus

func (d *Dota2) ToggleLobbyBroadcastChannelCameramanStatus()

ToggleLobbyBroadcastChannelCameramanStatus toggles lobby broadcast channel cameraman status. Request ID: k_EMsgGCPracticeLobbyToggleBroadcastChannelCameramanStatus Request type: CMsgPracticeLobbyToggleBroadcastChannelCameramanStatus

func (*Dota2) TrackDialogResult

func (d *Dota2) TrackDialogResult(
	dialogID uint32,
	value uint32,
)

TrackDialogResult tracks a dialog result. Request ID: k_EMsgClientToGCTrackDialogResult Request type: CMsgClientToGCTrackDialogResult

func (*Dota2) TransferTeamAdmin

func (d *Dota2) TransferTeamAdmin(
	ctx context.Context,
	newAdminAccountID uint32,
	teamID uint32,
) (*protocol.CMsgDOTATransferTeamAdminResponse, error)

TransferTeamAdmin transfers a team admin. Request ID: k_EMsgGCTransferTeamAdmin Response ID: k_EMsgGCTransferTeamAdminResponse Request type: CMsgDOTATransferTeamAdmin Response type: CMsgDOTATransferTeamAdminResponse

func (*Dota2) UpgradeLeagueItem

func (d *Dota2) UpgradeLeagueItem(
	ctx context.Context,
	matchID uint64,
	leagueID uint32,
) (*protocol.CMsgUpgradeLeagueItemResponse, error)

UpgradeLeagueItem upgrades a league item. Request ID: k_EMsgUpgradeLeagueItem Response ID: k_EMsgUpgradeLeagueItemResponse Request type: CMsgUpgradeLeagueItem Response type: CMsgUpgradeLeagueItemResponse

func (*Dota2) VoteForArcana

VoteForArcana votes a for arcana. Request ID: k_EMsgClientToGCVoteForArcana Response ID: k_EMsgClientToGCVoteForArcanaResponse Request type: CMsgClientToGCVoteForArcana Response type: CMsgClientToGCVoteForArcanaResponse

func (*Dota2) VoteForLeagueGameMVP

func (d *Dota2) VoteForLeagueGameMVP(
	matchID uint64,
	accountID uint32,
)

VoteForLeagueGameMVP votes a for league game mvp. Request ID: k_EMsgClientToGCVoteForLeagueGameMVP Request type: CMsgClientToGCVoteForLeagueGameMVP

func (*Dota2) VoteForMVP

func (d *Dota2) VoteForMVP(
	ctx context.Context,
	matchID uint64,
	accountID uint32,
) (*protocol.CMsgClientToGCVoteForMVPResponse, error)

VoteForMVP votes a for mvp. Request ID: k_EMsgClientToGCVoteForMVP Response ID: k_EMsgClientToGCVoteForMVPResponse Request type: CMsgClientToGCVoteForMVP Response type: CMsgClientToGCVoteForMVPResponse

func (*Dota2) VoteMVPTimeout

func (d *Dota2) VoteMVPTimeout(
	ctx context.Context,
	matchID uint64,
) (*protocol.CMsgClientToGCMVPVoteTimeoutResponse, error)

VoteMVPTimeout votes a mvp timeout. Request ID: k_EMsgClientToGCMVPVoteTimeout Response ID: k_EMsgClientToGCMVPVoteTimeoutResponse Request type: CMsgClientToGCMVPVoteTimeout Response type: CMsgClientToGCMVPVoteTimeoutResponse

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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