summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.ConfigModel/DefaultsConfiguration.cs
diff options
context:
space:
mode:
Diffstat (limited to 'extra/admin-api/Spacebar.ConfigModel/DefaultsConfiguration.cs')
-rw-r--r--extra/admin-api/Spacebar.ConfigModel/DefaultsConfiguration.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/admin-api/Spacebar.ConfigModel/DefaultsConfiguration.cs b/extra/admin-api/Spacebar.ConfigModel/DefaultsConfiguration.cs
new file mode 100644

index 00000000..884f3d54 --- /dev/null +++ b/extra/admin-api/Spacebar.ConfigModel/DefaultsConfiguration.cs
@@ -0,0 +1,37 @@ +using System.Text.Json.Serialization; + +namespace Spacebar.ConfigModel; + +public class DefaultsConfiguration +{ + [JsonPropertyName("guild")] public GuildDefaults Guild = new GuildDefaults(); + [JsonPropertyName("user")] public ChannelDefaults Channel = new ChannelDefaults(); +} + +public class GuildDefaults +{ + [JsonPropertyName("maxPresences")] public int MaxPresences { get; set; } = 250000; + + [JsonPropertyName("maxVideoChannelUsers")] + public int MaxVideoChannelUsers { get; set; } = 200; + + [JsonPropertyName("afkTimeout")] public int AfkTimeout { get; set; } = 300; + + [JsonPropertyName("defaultMessageNotifications")] + public int DefaultMessageNotifications { get; set; } = 1; + + [JsonPropertyName("explicitContentFilter")] + public int ExplicitContentFilter { get; set; } = 0; +} + +public class ChannelDefaults +{ + [JsonPropertyName("premium")] + public bool Premium { get; set; } = true; + + [JsonPropertyName("premiumType")] + public int PremiumType { get; set; } = 2; + + [JsonPropertyName("verified")] + public bool Verified { get; set; } = true; +} \ No newline at end of file