Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 8.0.1

Needs summary.

guildClubId = C_Club.GetGuildClubId()

Returns

guildClubId 
string?

Example

  • Example print.
/dump C_Club.GetGuildClubId() -- 15554351
API C Club.GetMessagesInRange.png
  • Prints all guild messages from start to end. Only tested with a small guild.
local club = C_Club.GetGuildClubId()
local streams = C_Club.GetStreams(club)
local guildStream = streams[1].streamId
local ranges = C_Club.GetMessageRanges(club, guildStream)
local oldest, newest = ranges[1].oldestMessageId, ranges[1].newestMessageId
local messages = C_Club.GetMessagesInRange(club, guildStream, oldest, newest)
for _, v in pairs(messages) do
	local timestamp = date("%Y-%m-%d %H:%M:%S", v.messageId.epoch/1e6)
	print(format("%s %s: |cffdda0dd%s|r", timestamp, v.author.name, v.content))
end

Patch changes

Advertisement