[Feature] Audit Log Created gateway event support (#2627)
* add event to socket client * make `AuditLog` param optional * Some WIP audit log changes * api models * moar models * complete models * modelsss * forgot to push * oh lol forgot this too * api & rest guild method * revert VS being VS & formatting to file scoped namespace * socket entities * some work eh * moar stuff - switched to d.net's attribute for audit log deserialization * working socket guild updated event + reworked rest GuildInfo creation * a bit of refactoring + new models * +channel created * channel updated & channel deleted * refactor rest channel updated log + some nullable fixes * rest channel created + deleted logs * user banned socket log * kick + unban * moar log modelsssss * fixes & 4 more log types * overwrite logs * role logs * invite logs * webhook logs * switch to `ISocketAuditLogData` for socket log data * emote logs * move stuff around * move more stuff around * audit logs cache * scheduled event logs * thread logs * command permission update audit log * fetch scheduled event data from log * integration audit logs * sticker audit log data * stage instance audit logs * auto mod rule audit logs * fix * forgot couple props * command perm updated data from options * final automod ones * debugging goes away :( * merge cringe * ... * yup * fix xml doc * onboarding audit logs * changes --------- Co-authored-by: cat <lumitydev@gmail.com>
This commit is contained in:
@@ -80,6 +80,12 @@ namespace Discord.WebSocket
|
||||
/// </summary>
|
||||
public int MessageCacheSize { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of audit logs per guild that should be kept in cache. Setting this to zero
|
||||
/// disables the audit log cache entirely.
|
||||
/// </summary>
|
||||
public int AuditLogCacheSize { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the max number of users a guild may have for offline users to be included in the READY
|
||||
/// packet. The maximum value allowed is 250.
|
||||
|
||||
Reference in New Issue
Block a user