Method GetGuildLog
- Namespace
- GuildWars2.Guilds
- Assembly
- GuildWars2.dll
GetGuildLog(string, string?, MissingMemberBehavior, in CancellationToken)
Retrieves the logs of a guild by its ID. This endpoint is only accessible with a valid access token and access is restricted to guild leaders.
public Task<(List<GuildLogEntry> Value, MessageContext Context)> GetGuildLog(string guildId, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, in CancellationToken cancellationToken = default)
Parameters
guildIdstringThe guild ID.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(List<GuildLogEntry> Value, MessageContext Context)>
A task that represents the API request.
GetGuildLog(string, int?, string?, MissingMemberBehavior, CancellationToken)
Retrieves the logs of a guild by its ID, returning only newer logs than the one specified. This endpoint is only accessible with a valid access token and access is restricted to guild leaders.
public Task<(List<GuildLogEntry> Value, MessageContext Context)> GetGuildLog(string guildId, int? sinceLogId, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
guildIdstringThe guild ID.
sinceLogIdint?The log ID to skip. This log and all older logs are excluded from the result.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(List<GuildLogEntry> Value, MessageContext Context)>
A task that represents the API request.