-
Notifications
You must be signed in to change notification settings - Fork 0
/
channel.proto
130 lines (117 loc) · 2.4 KB
/
channel.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
syntax = "proto3";
import "embed.proto";
import "emoji.proto";
import "member.proto";
import "user.proto";
message Channel {
string id = 1;
ChannelType type = 2;
string guild_id = 3;
int32 position = 4;
repeated PermissionOverwrites permission_overwrites = 5;
string name = 6;
string topic = 7;
bool nsfw = 8;
string last_message_id = 9;
int32 bitrate = 10;
int32 user_limit = 11;
int32 rate_limit_per_user = 12;
repeated User recipients = 13;
string icon = 14;
string owner_id = 15;
string application_id = 16;
string parent_id = 17;
string last_pin_timestamp = 18;
}
message Attachment {
string id = 1;
string filename = 2;
int32 size = 3;
string url = 4;
string proxy_url = 5;
int32 height = 6;
int32 width = 7;
}
message Reaction {
int32 count = 1;
bool me = 2;
Emoji emoji = 3;
}
message MessageActivity {
MessageActivityType type = 1;
string party_id = 2;
}
message MessageApplication {
string id = 1;
string cover_image = 2;
string description = 3;
string icon = 4;
string name = 5;
}
message Message {
string id = 1;
string channel_id = 2;
string guild_id = 3;
User author = 4;
Member member = 5;
string content = 6;
string timestamp = 7;
string edited_timestamp = 8;
bool tts = 9;
bool mention_everyone = 10;
repeated User mentions = 11;
repeated string mention_roles = 12;
repeated Attachment attachments = 13;
repeated Embed embeds = 14;
repeated Reaction reactions = 15;
string nonce = 16;
bool pinned = 17;
string webhook_id = 18;
MessageType type = 19;
MessageActivity activity = 20;
MessageApplication application = 21;
}
message MessageInput {
string content = 1;
string nonce = 2;
bool tts = 3;
repeated File file = 4;
Embed embed = 5;
}
message File {
string name = 1;
string content_type = 2;
string data = 3;
}
message PermissionOverwrites {
string id = 1;
string type = 2;
int32 allow = 3;
int32 deny = 4;
}
enum ChannelType {
GUILD_TEXT = 0;
DM = 1;
GUILD_VOICE = 2;
GROUP_DM = 3;
GUILD_CATEGORY = 4;
GUILD_NEWS = 5;
GUILD_STORE = 6;
}
enum MessageType {
DEFAULT = 0;
RECIPIENT_ADD = 1;
RECIPIENT_REMOVE = 2;
CALL = 3;
CHANNEL_NAME_CHANGE = 4;
CHANNEL_ICON_CHANGE = 5;
CHANNEL_PINNED_MESSAGE = 6;
GUILD_MEMBER_JOIN = 7;
}
enum MessageActivityType {
UNKNOWN_SPECIAL_KUBECORD_DEFAULT_CHANNEL = 0;
JOIN = 1;
SPECTATE = 2;
LISTEN = 3;
JOIN_REQUEST = 5;
}