mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 20:39:56 +00:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Spacebar.ConfigModel;
|
|
|
|
public class DefaultsConfiguration
|
|
{
|
|
[JsonPropertyName("guild")] public GuildDefaults Guild = new();
|
|
[JsonPropertyName("user")] public ChannelDefaults Channel = new();
|
|
}
|
|
|
|
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;
|
|
} |