Files
Discord.Net/src/Discord.Net.Rest/API/AuditLogs/GuildInfoAuditLogModel.cs
Misha133 dff6a57a92 [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>
2023-04-15 01:13:02 +02:00

83 lines
2.2 KiB
C#

using Discord.Rest;
namespace Discord.API.AuditLogs;
public class GuildInfoAuditLogModel : IAuditLogInfoModel
{
[JsonField("name")]
public string Name { get; set; }
[JsonField("afk_timeout")]
public int? AfkTimeout { get; set; }
[JsonField("widget_enabled")]
public bool? IsEmbeddable { get; set; }
[JsonField("default_message_notifications")]
public DefaultMessageNotifications? DefaultMessageNotifications { get; set; }
[JsonField("mfa_level")]
public MfaLevel? MfaLevel { get; set; }
[JsonField("verification_level")]
public VerificationLevel? VerificationLevel { get; set; }
[JsonField("explicit_content_filter")]
public ExplicitContentFilterLevel? ExplicitContentFilterLevel { get; set; }
[JsonField("icon_hash")]
public string IconHash { get; set; }
[JsonField("discovery_splash")]
public string DiscoverySplash { get; set; }
[JsonField("splash")]
public string Splash { get; set; }
[JsonField("afk_channel_id")]
public ulong? AfkChannelId { get; set; }
[JsonField("widget_channel_id")]
public ulong? EmbeddedChannelId { get; set; }
[JsonField("system_channel_id")]
public ulong? SystemChannelId { get; set; }
[JsonField("rules_channel_id")]
public ulong? RulesChannelId { get; set; }
[JsonField("public_updates_channel_id")]
public ulong? PublicUpdatesChannelId { get; set; }
[JsonField("owner_id")]
public ulong? OwnerId { get; set; }
[JsonField("application_id")]
public ulong? ApplicationId { get; set; }
[JsonField("region")]
public string RegionId { get; set; }
[JsonField("banner")]
public string Banner { get; set; }
[JsonField("vanity_url_code")]
public string VanityUrl { get; set; }
[JsonField("system_channel_flags")]
public SystemChannelMessageDeny? SystemChannelFlags { get; set; }
[JsonField("description")]
public string Description { get; set; }
[JsonField("preferred_locale")]
public string PreferredLocale { get; set; }
[JsonField("nsfw_level")]
public NsfwLevel? NsfwLevel { get; set; }
[JsonField("premium_progress_bar_enabled")]
public bool? ProgressBarEnabled { get; set; }
}