blob: 1bb8079a2dfa8ab7865ef4a35c6a9e6f3f86ac43 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
namespace Spacebar.Models.Api;
public class CreateGuildRequest {
[JsonPropertyName("name")]
public string? Name { get; set; }
[JsonPropertyName("description")]
public string? Description { get; set; }
[JsonPropertyName("region")]
public string? Region { get; set; } // deprecated?
[JsonPropertyName("icon")]
public string? IconData { get; set; }
[JsonPropertyName("verification_level")]
public int? VerificationLevel { get; set; } // TODO enum
[JsonPropertyName("default_message_notifications")]
public int? DefaultMessageNotifications { get; set; } // TODO enum
[JsonPropertyName("explicit_content_filter")]
public int? ExplicitContentFilter { get; set; } // TODO enum
[JsonPropertyName("preferred_locale")]
public string? PreferredLocale { get; set; }
[JsonPropertyName("roles")]
public List<JsonObject> Roles { get; set; } // TODO type
[JsonPropertyName("channels")]
public List<JsonObject> Channels { get; set; } // TODO type
[JsonPropertyName("afk_channel_id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
public long? AfkChannelId { get; set; }
[JsonPropertyName("afk_timeout")]
public int? AfkTimeout { get; set; }
[JsonPropertyName("system_channel_id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
public long? SystemChannelId { get; set; }
[JsonPropertyName("system_channel_flags")]
public int? SystemChannelFlags { get; set; } // TODO enum
[JsonPropertyName("guild_template_code")]
public string? GuildTemplateCode { get; set; }
[JsonPropertyName("staff_only")]
public bool? StaffOnly { get; set; }
}
|