-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguild.proto
108 lines (97 loc) · 2.24 KB
/
guild.proto
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
Snowflakes are being represented as strings due to how Discord handles them
Read more info here: https://discordapp.com/developers/docs/reference#snowflakes
*/
syntax = "proto3";
import "channel.proto";
import "emoji.proto";
import "member.proto";
import "presence_update.proto";
import "role.proto";
import "user.proto";
import "voice_state.proto";
message Guild {
string id = 1;
string name = 2;
string icon = 3;
string splash = 4;
bool owner = 5;
string owner_id = 6;
int32 permissions = 7;
string region = 8;
string afk_channel_id = 9;
int32 afk_timeout = 10;
bool embed_enabled = 11;
string embed_channel_id = 12;
int32 verification_level = 13;
MessageNotification default_message_notifications = 14;
ExplicitContentFilter explicit_content_filter = 15;
repeated Role roles = 16;
repeated Emoji emojis = 17;
repeated string features = 18;
int32 mfa_level = 19;
string application_id = 20;
bool widget_enabled = 21;
string widget_channel_id = 22;
string system_channel_id = 23;
string joined_at = 24;
bool large = 25;
bool unavailable = 26;
int32 member_count = 27;
repeated VoiceState voice_states = 28;
repeated Member members = 29;
repeated Channel channels = 30;
repeated PresenceUpdate presences = 31;
int32 max_presences = 32;
int32 max_members = 33;
string vanity_url_code = 34;
string description = 35;
string banner = 36;
int32 premium_tier = 37;
int32 premium_subscription_count = 38;
}
message BanInfo {
string reason = 1;
User user = 2;
}
message PruneCount {
int32 pruned = 1;
}
message VoiceRegion {
string id = 1;
string name = 2;
bool vip = 3;
bool optimal = 4;
bool deprecated = 5;
bool custom = 6;
}
message GuildIntegration {
string id = 1;
string name = 2;
string type = 3;
bool enabled = 4;
bool syncing = 5;
string role_id = 6;
int32 expire_behavior = 7;
int32 expire_grace_period = 8;
User user = 9;
Account account = 10;
string synced_at = 11;
}
message Account {
string id = 1;
string name = 2;
}
enum MessageNotification {
ALL_MESSAGES = 0;
ONLY_MENTIONS = 1;
}
enum ExplicitContentFilter {
DISABLED = 0;
MEMBERS_WITHOUT_ROLES = 1;
ALL_MEMBERS = 2;
}
message GuildEmbed {
bool enabled = 1;
string channel_id = 2;
}