Skip to content

Commit

Permalink
feat: embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed Sep 29, 2023
1 parent c2152a1 commit 999b99a
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions discord/discord.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,25 @@ service Discord {
rpc Update(UpdateRequest) returns (UpdateResponse);
}

message DiscordEmbedsFields {
string name = 1;
string value = 2;
string inline = 3;
}

message DiscordEmbeds {
string title = 1;
string description = 2;
string url = 3;
string color = 4;
string author = 5;
repeated DiscordEmbedsFields fields = 6;
}

message CreateRequest {
string username = 1;
string avatar_url = 2;
string content = 3;
string embeds = 4;
string avatar_url = 1;
string content = 2;
repeated DiscordEmbeds embeds = 3;
}

message CreateResponse {
Expand All @@ -22,10 +36,9 @@ message CreateResponse {

message UpdateRequest {
string id = 1;
string username = 2;
string avatar_url = 3;
string content = 4;
string embeds = 5;
string avatar_url = 2;
string content = 3;
repeated DiscordEmbeds embeds = 4;
}

message UpdateResponse {
Expand Down

0 comments on commit 999b99a

Please sign in to comment.