Protocol Documentation¶
Table of Contents¶
discord_api.proto¶
Discord API service
This file contains all messages and services currently supported by Discord Proxy
Channel¶
Source: https://discord.com/developers/docs/resources/channel#channel-object
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
type |
|||
guild_id |
|||
position |
|||
name |
tbd // |
||
topic |
|||
nsfw |
|||
last_message_id |
|||
parent_id |
Embed¶
Source: https://discord.com/developers/docs/resources/channel#embed-object-embed-structure
Field |
Type |
Label |
Description |
---|---|---|---|
title |
|||
type |
|||
description |
|||
url |
|||
timestamp |
|||
color |
|||
footer |
|||
image |
|||
thumbnail |
|||
video |
|||
provider |
|||
author |
|||
fields |
repeated |
Embed.Field¶
Field |
Type |
Label |
Description |
---|---|---|---|
name |
|||
value |
|||
inline |
Embed.Image¶
Field |
Type |
Label |
Description |
---|---|---|---|
url |
|||
proxy_icon_url |
|||
height |
|||
width |
Embed.Provider¶
Field |
Type |
Label |
Description |
---|---|---|---|
name |
|||
url |
Embed.Thumbnail¶
Field |
Type |
Label |
Description |
---|---|---|---|
url |
|||
proxy_url |
|||
height |
|||
width |
Embed.Video¶
Field |
Type |
Label |
Description |
---|---|---|---|
url |
|||
proxy_icon_url |
|||
height |
|||
width |
Emoji¶
Source: https://discord.com/developers/docs/resources/emoji#emoji-object
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
name |
|||
roles |
repeated |
||
user |
|||
required_colons |
|||
managed |
|||
animated |
|||
available |
GetGuildChannelsRequest¶
Field |
Type |
Label |
Description |
---|---|---|---|
guild_id |
GetGuildChannelsResponse¶
Field |
Type |
Label |
Description |
---|---|---|---|
channels |
repeated |
GuildMember¶
Source: https://discord.com/developers/docs/resources/guild#guild-member-object
Field |
Type |
Label |
Description |
---|---|---|---|
user |
|||
nick |
|||
roles |
repeated |
||
joined_at |
|||
premium_since |
|||
deaf |
|||
mute |
|||
pending |
|||
permissions |
Message¶
Source: https://discord.com/developers/docs/resources/channel#message-object
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
channel_id |
|||
guild_id |
|||
author |
|||
member |
|||
content |
|||
timestamp |
|||
edited_timestamp |
|||
tts |
|||
mention_everyone |
|||
mentions |
repeated |
||
mention_roles |
repeated |
||
mention_channels |
repeated |
||
attachments |
repeated |
||
embeds |
repeated |
||
reactions |
repeated |
||
nonce |
|||
pinned |
|||
webhook_id |
|||
type |
|||
activity |
|||
application |
|||
message_reference |
|||
flags |
|||
stickers |
repeated |
||
referenced_message |
interaction: not implemented |
Message.Activity¶
Field |
Type |
Label |
Description |
---|---|---|---|
type |
|||
party_id |
Message.Application¶
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
cover_image |
|||
description |
|||
icon |
|||
name |
Message.Attachment¶
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
filename |
|||
size |
|||
url |
|||
proxy_url |
|||
height |
|||
width |
Message.ChannelMention¶
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
guild_id |
|||
type |
|||
name |
Message.Reaction¶
Field |
Type |
Label |
Description |
---|---|---|---|
count |
|||
me |
|||
emoji |
Message.Reference¶
Field |
Type |
Label |
Description |
---|---|---|---|
message_id |
|||
channel_id |
|||
guild_id |
|||
fail_if_not_exists |
Message.Sticker¶
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
pack_id |
|||
name |
|||
description |
|||
tags |
|||
asset |
|||
preview_asset |
|||
format_type |
Role¶
Source: https://discord.com/developers/docs/topics/permissions#role-object
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
name |
|||
color |
|||
hoist |
|||
position |
|||
permissions |
|||
managed |
|||
mentionable |
|||
tags |
repeated |
Role.Tag¶
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
integration_id |
|||
premium_subscriber |
SendChannelMessageRequest¶
Field |
Type |
Label |
Description |
---|---|---|---|
channel_id |
|||
content |
|||
embed |
SendChannelMessageResponse¶
Field |
Type |
Label |
Description |
---|---|---|---|
message |
SendDirectMessageRequest¶
Field |
Type |
Label |
Description |
---|---|---|---|
user_id |
|||
content |
|||
embed |
SendDirectMessageResponse¶
Field |
Type |
Label |
Description |
---|---|---|---|
message |
User¶
Source: https://discord.com/developers/docs/resources/user#user-object
Field |
Type |
Label |
Description |
---|---|---|---|
id |
|||
username |
|||
discriminator |
|||
avatar |
|||
bot |
|||
system |
|||
mfa_enabled |
|||
locale |
|||
verified |
|||
flags |
|||
premium_type |
|||
public_flags |
Channel.Type¶
Name |
Number |
Description |
---|---|---|
UNDEFINED |
0 |
|
GUILD_TEXT |
1 |
|
DM |
2 |
|
GUILD_VOICE |
3 |
|
GROUP_DM |
4 |
|
GUILD_CATEGORY |
5 |
|
GUILD_NEWS |
6 |
GUILD_STORE = 7; NO LONGER SUPORTED IN API |
Message.Activity.Type¶
Name |
Number |
Description |
---|---|---|
UNDEFINED |
0 |
|
JOIN |
1 |
|
SPECTATE |
2 |
|
LISTEN |
3 |
|
JOIN_REQUESTS |
4 |
Message.Sticker.Type¶
Name |
Number |
Description |
---|---|---|
UNDEFINED |
0 |
|
PNG |
1 |
|
APNG |
2 |
|
LOTTIE |
3 |
Message.Type¶
Name |
Number |
Description |
---|---|---|
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 |
|
USER_PREMIUM_GUILD_SUBSCRIPTION |
8 |
|
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 |
9 |
|
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 |
10 |
|
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 |
11 |
|
CHANNEL_FOLLOW_ADD |
12 |
|
GUILD_DISCOVERY_DISQUALIFIED |
14 |
|
GUILD_DISCOVERY_REQUALIFIED |
15 |
|
REPLY |
19 |
|
APPLICATION_COMMAND |
20 |
DiscordApi¶
Provides access to the Discord API
Method Name |
Request Type |
Response Type |
Description |
---|---|---|---|
SendChannelMessage |
Send a message to a guild channel |
||
SendDirectMessage |
Send a direct message to a user |
||
GetGuildChannels |
Get the list of channel for a guild |
Scalar Value Types¶
.proto Type |
Notes |
C++ |
Java |
Python |
Go |
C# |
PHP |
Ruby |
---|---|---|---|---|---|---|---|---|
double |
double |
float |
float64 |
double |
float |
Float |
||
float |
float |
float |
float32 |
float |
float |
Float |
||
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. |
int32 |
int |
int |
int32 |
int |
integer |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. |
int64 |
long |
int/long |
int64 |
long |
integer/string |
Bignum |
|
Uses variable-length encoding. |
uint32 |
int |
int/long |
uint32 |
uint |
integer |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. |
uint64 |
long |
int/long |
uint64 |
ulong |
integer/string |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. |
int32 |
int |
int |
int32 |
int |
integer |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. |
int64 |
long |
int/long |
int64 |
long |
integer/string |
Bignum |
|
Always four bytes. More efficient than uint32 if values are often greater than 2^28. |
uint32 |
int |
int |
uint32 |
uint |
integer |
Bignum or Fixnum (as required) |
|
Always eight bytes. More efficient than uint64 if values are often greater than 2^56. |
uint64 |
long |
int/long |
uint64 |
ulong |
integer/string |
Bignum |
|
Always four bytes. |
int32 |
int |
int |
int32 |
int |
integer |
Bignum or Fixnum (as required) |
|
Always eight bytes. |
int64 |
long |
int/long |
int64 |
long |
integer/string |
Bignum |
|
bool |
boolean |
boolean |
bool |
bool |
boolean |
TrueClass/FalseClass |
||
A string must always contain UTF-8 encoded or 7-bit ASCII text. |
string |
String |
str/unicode |
string |
string |
string |
String (UTF-8) |
|
May contain any arbitrary sequence of bytes. |
string |
ByteString |
str |
[]byte |
ByteString |
string |
String (ASCII-8BIT) |