v0.13.8

C_Club

namespaceavailable in: camelot

Status in wowlua

84 functions: 9 implemented, 2 recorded, 73 guessed. 30 events, 1 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AcceptInvitationAccepts an invitation to a community. · by wowlua
(clubId: ClubId)
guessed
AddClubStreamChatChannelAdds a communities channel.
(clubId: ClubId, streamId: ClubStreamId)
guessed
AdvanceStreamViewMarkerMarks a community stream as read up to now. · by wowlua
(clubId: ClubId, streamId: ClubStreamId)
guessed
AreMembersReadyWhether the community's member list has been loaded. · by wowlua
(clubId: ClubId): boolean
implemented
AssignMemberRoleGives a community member a role, such as moderator. · by wowlua
(clubId: ClubId, memberId: ClubMemberOpaqueId, roleId: ClubRoleIdentifier)
guessed
CanResolvePlayerLocationFromClubMessageDataWhether the sender of a community message can be found as a player. · by wowlua
(clubId: ClubId, streamId: ClubStreamId, epoch: number, position: number): boolean
guessed
ClearAutoAdvanceStreamViewMarkerStops marking a community stream as read automatically. · by wowlua
()
guessed
ClearClubPresenceSubscriptionStops receiving online status updates of a community's members. · by wowlua
()
guessed
CompareBattleNetDisplayNameCompares two community members by Battle.net name, for sorting. · by wowlua
(clubId: ClubId, lhsMemberId: number, rhsMemberId: number): number
guessed
CreateClubCreates a community. · by wowlua
(name: string, shortName: string?, description: string, clubType: ClubType, avatarId: number, isCrossFaction: boolean?)
guessed
CreateStreamCheck the canCreateStream privilege.
(clubId: ClubId, name: string, subject: string, leadersAndModeratorsOnly: boolean)
guessed
CreateTicketThis is protected and only available to the Blizzard UI. Used for creating a ticket for a community club.
(clubId: ClubId, allowedRedeemCount: number?, duration: number?, defaultStreamId: ClubStreamId?, isCrossFaction: boolean?)
guessed
DeclineInvitationDeclines an invitation to a community. · by wowlua
(clubId: ClubId)
guessed
DestroyClubCheck the canDestroy privilege.
(clubId: ClubId)
guessed
DestroyMessageDeletes a message in a community stream. · by wowlua
(clubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifier)
guessed
DestroyStreamCheck canDestroyStream privilege.
(clubId: ClubId, streamId: ClubStreamId)
guessed
DestroyTicketCheck canDestroyTicket privilege.
(clubId: ClubId, ticketId: string)
guessed
DoesAnyCommunityHaveUnreadMessagesWhether any of the player's communities has unread messages. · by wowlua
(): boolean
guessed
DoesCommunityHaveMembersOfTheOppositeFactionWhether the community has members of the other faction. · by wowlua
(clubId: ClubId): boolean
guessed
EditClubnil arguments will not change existing club data
(clubId: ClubId, name: string?, shortName: string?, description: string?, avatarId: number?, broadcast: string?, crossFaction: boolean?)
guessed
EditMessageChanges the text of a message in a community stream. · by wowlua
(clubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifier, message: string)
guessed
EditStreamCheck the canSetStreamName, canSetStreamSubject, canSetStreamAccess privileges. nil arguments will not change existing stream data.
(clubId: ClubId, streamId: ClubStreamId, name: string?, subject: string?, leadersAndModeratorsOnly: boolean?)
guessed
FlushSends the community changes that are waiting to the server. · by wowlua
()
guessed
FocusCommunityStreamsStarts receiving the messages of the communities' streams. · by wowlua
()
guessed
FocusMembersStarts receiving updates of a community's members. · by wowlua
(clubId: ClubId)
guessed
FocusStreamStarts receiving a community stream's messages and returns whether it worked. · by wowlua
(clubId: ClubId, streamId: ClubStreamId): boolean
guessed
GetAssignableRolesReturns the roles a community member can be given. · by wowlua
(clubId: ClubId, memberId: ClubMemberOpaqueId): ClubRoleIdentifier[]
guessed
GetAvatarIdListlisten for AVATAR_LIST_UPDATED event. This can happen if we haven't downloaded the battle.net avatar list yet
(clubType: ClubType): number[]?
guessed
GetClubCapacityReturns how many members a community can have. · by wowlua
(): number
guessed
GetClubInfoReturns information about a community, or nil. · by wowlua
(clubId: ClubId): ClubInfo?
implemented
GetClubLimitsReturns the limits of a community type, such as how many streams it can have. · by wowlua
(clubType: ClubType): ClubLimits
guessed
GetClubMembersReturns the member IDs of a community, or of those who can see one of its streams. · by wowlua
(clubId: ClubId, streamId: ClubStreamId?): ClubMemberOpaqueId[]
implemented
GetClubPrivilegesThe privileges for the logged in user for this club
(clubId: ClubId): ClubPrivilegeInfo
guessed
GetClubStreamNotificationSettingsReturns the notification settings of a community's streams. · by wowlua
(clubId: ClubId): ClubStreamNotificationSetting[]
guessed
GetCommunityNameResultTextReturns the message that explains a name check's result, or nil. · by wowlua
(result: ValidateNameResult): string?
guessed
GetGuildClubIdReturns the community ID of the player's guild, or nil outside a guild. · by wowlua
(): ClubId?
implemented
GetInfoFromLastCommunityChatLineReturns the message, community, stream and community type of the last community chat line. · by wowlua
(): (ClubMessageInfo?, ClubId?, ClubStreamId?, ClubType?)
guessed
GetInvitationCandidatesReturns a list of players that you can send a request to a Battle.net club. Returns an empty list for Character based clubs
(filter: string?, maxResults: number?, cursorPosition: number?, allowFullMatch: boolean?, clubId: ClubId): ClubInvitationCandidateInfo[]
guessed
GetInvitationInfoGet info about a specific club the active player has been invited to.
(clubId: ClubId): ClubSelfInvitationInfo?
guessed
GetInvitationsForClubGet the pending invitations for this club. Call RequestInvitationsForClub() to retrieve invitations from server.
(clubId: ClubId): ClubInvitationInfo[]
guessed
GetInvitationsForSelfThese are the clubs the active player has been invited to.
(): ClubSelfInvitationInfo[]
recorded
GetLastTicketResponseReturns the server's last answer about a community invite link: an error, the community, and more. · by wowlua
(ticket: string): (ClubErrorType?, ClubInfo?, boolean?)
guessed
GetMemberInfoReturns information about a community member, or nil. · by wowlua
(clubId: ClubId, memberId: ClubMemberOpaqueId): ClubMemberInfo?
implemented
GetMemberInfoForSelfInfo for the logged in user for this club
(clubId: ClubId): ClubMemberInfo?
implemented
GetMessageInfoGet info about a particular message.
(clubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifier): ClubMessageInfo?
guessed
GetMessageRangesGet the ranges of the messages currently downloaded.
(clubId: ClubId, streamId: ClubStreamId): ClubMessageRange[]
guessed
GetMessagesBeforeGet downloaded messages before (and including) the specified messageId limited by count. These are filtered by ignored players
(clubId: ClubId, streamId: ClubStreamId, newest: ClubMessageIdentifier, count: number): ClubMessageInfo[]
guessed
GetMessagesInRangeGet downloaded messages in the given range. These are filtered by ignored players
(clubId: ClubId, streamId: ClubStreamId, oldest: ClubMessageIdentifier, newest: ClubMessageIdentifier): ClubMessageInfo[]
guessed
GetStreamInfoReturns information about a community stream, or nil. · by wowlua
(clubId: ClubId, streamId: ClubStreamId): ClubStreamInfo?
implemented
GetStreamViewMarkerReturns the time up to which a community stream has been read, or nil. · by wowlua
(clubId: ClubId, streamId: ClubStreamId): number?
guessed
GetStreamsReturns a community's chat streams. · by wowlua
(clubId: ClubId): ClubStreamInfo[]
implemented
GetSubscribedClubsReturns the communities the player is a member of, the guild included. · by wowlua
(): ClubInfo[]
implemented
GetTicketsGet the existing tickets for this club. Call RequestTickets() to retrieve tickets from server.
(clubId: ClubId): ClubTicketInfo[]
guessed
IsAccountMutedWhether the player's account is muted in the community. · by wowlua
(clubId: ClubId): boolean
guessed
IsBeginningOfStreamReturns whether the given message is the first message in the stream, taking into account ignored messages
(clubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifier): boolean
guessed
IsEnabledWhether communities are enabled. · by wowlua
(): boolean
recorded
IsRestrictedReturns why communities are restricted for the player, or that they are not. · by wowlua
(): ClubRestrictionReason
guessed
IsSubscribedToStreamWhether the player receives the messages of a community stream. · by wowlua
(clubId: ClubId, streamId: ClubStreamId): boolean
guessed
KickMemberCheck kickableRoleIds privilege.
(clubId: ClubId, memberId: ClubMemberOpaqueId)
guessed
LeaveClubLeaves a community. · by wowlua
(clubId: ClubId)
guessed
RedeemTicketJoins a community through an invite link. · by wowlua
(ticketId: string)
guessed
RequestInvitationsForClubRequest invitations for this club from server. Check canGetInvitation privilege.
(clubId: ClubId)
guessed
RequestMoreMessagesBeforeCall this when the user scrolls near the top of the message view, and more need to be displayed. The history will be downloaded backwards (newest to oldest).
(clubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifier?, count: number?): boolean
guessed
RequestTicketAsks the server for information about a community invite link. · by wowlua
(ticketId: string)
guessed
RequestTicketsRequest tickets from server. Check canGetTicket privilege.
(clubId: ClubId)
guessed
RevokeInvitationCheck canRevokeOwnInvitation or canRevokeOtherInvitation
(clubId: ClubId, memberId: ClubMemberOpaqueId)
guessed
SendBattleTagFriendRequestSends a BattleTag friend request to a guild member. · by wowlua
(guildClubId: ClubId, memberId: ClubMemberOpaqueId)
guessed
SendCharacterInvitationInvites a character to a community. · by wowlua
(clubId: ClubId, character: string)
guessed
SendInvitationCheck the canSendInvitation privilege.
(clubId: ClubId, memberId: ClubMemberOpaqueId)
guessed
SendMessageThis is a protected function and will not work via addons. Used to send message to Club Stream.
(clubId: ClubId, streamId: ClubStreamId, message: string)
guessed
SendTitleFriendRequestSends an in-game friend request to a guild member. · by wowlua
(guildClubId: ClubId, memberId: ClubMemberOpaqueId)
guessed
SetAutoAdvanceStreamViewMarkerOnly one stream can be set for auto-advance at a time. Focused streams will have their view times advanced automatically.
(clubId: ClubId, streamId: ClubStreamId)
guessed
SetAvatarTextureSets a texture to a community avatar. · by wowlua
(texture: Texture, avatarId: number, clubType: ClubType)
guessed
SetClubMemberNoteCheck the canSetOwnMemberNote and canSetOtherMemberNote privileges.
(clubId: ClubId, memberId: ClubMemberOpaqueId, note: string)
guessed
SetClubPresenceSubscriptionYou can only be subscribed to 0 or 1 clubs for presence. Subscribing to a new club automatically unsuscribes you to existing subscription.
(clubId: ClubId)
guessed
SetClubStreamNotificationSettingsSets the notification settings of a community's streams. · by wowlua
(clubId: ClubId, settings: ClubStreamNotificationSetting[])
guessed
SetCommunityIDSets the community ID used by the community interface. · by wowlua
(communityID: number)
guessed
SetFavoriteMarks or unmarks a community as a favorite. · by wowlua
(clubId: ClubId, isFavorite: boolean)
guessed
SetSocialQueueingEnabledSets whether the community's members see the player's group finder listings. · by wowlua
(clubId: ClubId, enabled: boolean)
guessed
ShouldAllowClubTypeWhether communities of the type can be used. · by wowlua
(clubType: ClubType): boolean
guessed
UnfocusAllStreamsStops receiving the messages of all focused community streams. · by wowlua
(unsubscribe: boolean)
guessed
UnfocusMembersStops receiving updates of a community's members. · by wowlua
(clubId: ClubId)
guessed
UnfocusStreamStops receiving a community stream's messages. · by wowlua
(clubId: ClubId, streamId: ClubStreamId)
guessed
ValidateTextChecks whether a text can be used for a community field, such as its name, and returns the result. · by wowlua
(clubType: ClubType, text: string, clubFieldType: ClubFieldType): ValidateNameResult
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
AVATAR_LIST_UPDATEDclubType: ClubTypenot implemented
CLUB_ADDEDclubId: ClubIdnot implemented
CLUB_ERRORaction: ClubActionType, error: ClubErrorType, clubType: ClubTypenot implemented
CLUB_INVITATIONS_RECEIVED_FOR_CLUBclubId: ClubIdnot implemented
CLUB_INVITATION_ADDED_FOR_SELFinvitation: ClubSelfInvitationInfonot implemented
CLUB_INVITATION_REMOVED_FOR_SELFinvitationId: ClubInvitationIdnot implemented
CLUB_MEMBERS_UPDATEDclubId: ClubIdnot implemented
CLUB_MEMBER_ADDEDclubId: ClubId, memberId: ClubMemberOpaqueIdnot implemented
CLUB_MEMBER_PRESENCE_UPDATEDclubId: ClubId, memberId: ClubMemberOpaqueId, presence: ClubMemberPresencenot implemented
CLUB_MEMBER_REMOVEDclubId: ClubId, memberId: ClubMemberOpaqueIdnot implemented
CLUB_MEMBER_ROLE_UPDATEDclubId: ClubId, memberId: ClubMemberOpaqueId, roleId: numbernot implemented
CLUB_MEMBER_UPDATEDclubId: ClubId, memberId: ClubMemberOpaqueIdnot implemented
CLUB_MESSAGE_ADDEDclubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifiernot implemented
CLUB_MESSAGE_HISTORY_RECEIVEDclubId: ClubId, streamId: ClubStreamId, downloadedRange: ClubMessageRange, contiguousRange: ClubMessageRangenot implemented
CLUB_MESSAGE_UPDATEDclubId: ClubId, streamId: ClubStreamId, messageId: ClubMessageIdentifiernot implemented
CLUB_REMOVEDclubId: ClubIdnot implemented
CLUB_REMOVED_MESSAGEclubName: string, clubRemovedReason: ClubRemovedReasonnot implemented
CLUB_SELF_MEMBER_ROLE_UPDATEDclubId: ClubId, roleId: numbernot implemented
CLUB_STREAMS_LOADEDclubId: ClubIdnot implemented
CLUB_STREAM_ADDEDclubId: ClubId, streamId: ClubStreamIdnot implemented
CLUB_STREAM_REMOVEDclubId: ClubId, streamId: ClubStreamIdnot implemented
CLUB_STREAM_SUBSCRIBEDclubId: ClubId, streamId: ClubStreamIdnot implemented
CLUB_STREAM_UNSUBSCRIBEDclubId: ClubId, streamId: ClubStreamIdnot implemented
CLUB_STREAM_UPDATEDclubId: ClubId, streamId: ClubStreamIdnot implemented
CLUB_TICKETS_RECEIVEDclubId: ClubIdnot implemented
CLUB_TICKET_CREATEDclubId: ClubId, ticketInfo: ClubTicketInfonot implemented
CLUB_TICKET_RECEIVEDticket: stringnot implemented
CLUB_UPDATEDclubId: ClubIdnot implemented
INITIAL_CLUBS_LOADEDno payloadimplemented
STREAM_VIEW_MARKER_UPDATEDclubId: ClubId, streamId: ClubStreamId, lastReadTime: number?not implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("AVATAR_LIST_UPDATED").

Structures

  • ClubInfo · clubId, name, shortName?, description, broadcast, clubType, avatarId, memberCount?, favoriteTimeStamp?, joinTime?, socialQueueingEnabled?, crossFaction?
  • ClubInvitationCandidateInfo · memberId, name, priority, status
  • ClubInvitationInfo · invitationId, isMyInvitation, invitee
  • ClubLimits · maximumNumberOfStreams
  • ClubMemberInfo · isSelf, memberId, name?, role?, presence, clubType?, guid?, bnetAccountId?, memberNote?, officerNote?, classID?, race?, level?, zone?, achievementPoints?, profession1ID?, profession1Rank?, profession1Name?, profession2ID?, profession2Rank?, profession2Name?, lastOnlineYear?, lastOnlineMonth?, lastOnlineDay?, lastOnlineHour?, guildRank?, guildRankOrder?, isRemoteChat?, overallDungeonScore?, faction?, timerunningSeasonID?, discordInfo?
  • ClubMessageIdentifier · epoch, position
  • ClubMessageInfo · messageId, content, author, destroyer?, destroyed, edited
  • ClubMessageRange · oldestMessageId, newestMessageId
  • ClubPrivilegeInfo · canDestroy, canSetAttribute, canSetName, canSetDescription, canSetAvatar, canSetBroadcast, canSetPrivacyLevel, canSetOwnMemberAttribute, canSetOtherMemberAttribute, canSetOwnMemberNote, canSetOtherMemberNote, canSetOwnVoiceState, canSetOwnPresenceLevel, canUseVoice, canVoiceMuteMemberForAll, canGetInvitation, canSendInvitation, canSendGuestInvitation, canRevokeOwnInvitation, canRevokeOtherInvitation, canGetBan, canGetSuggestion, canSuggestMember, canGetTicket, canCreateTicket, canDestroyTicket, canAddBan, canRemoveBan, canCreateStream, canDestroyStream, canSetStreamPosition, canSetStreamAttribute, canSetStreamName, canSetStreamSubject, canSetStreamAccess, canSetStreamVoiceLevel, canCreateMessage, canDestroyOwnMessage, canDestroyOtherMessage, canEditOwnMessage, canPinMessage, kickableRoleIds
  • ClubRoleInfo · roleId, name, required, unique
  • ClubSelfInvitationInfo · invitationId, club, inviter, leaders
  • ClubStreamInfo · streamId, name, subject, leadersAndModeratorsOnly, streamType, creationTime
  • ClubStreamNotificationSetting · streamId, filter
  • ClubTicketInfo · ticketId, allowedRedeemCount, currentRedeemCount, creationTime, expirationTime, defaultStreamId?, creator

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Club system, camelot 1.60.1). Descriptions: Blizzard's API documentation (Blizzard_APIDocumentationGenerated); warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.