From 999b99a07f0be6c21d9b669f5d46a659dda2bcf7 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Fri, 29 Sep 2023 19:47:54 +0100 Subject: [PATCH] feat: embeds --- discord/discord.proto | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/discord/discord.proto b/discord/discord.proto index 23520a5..6588fc0 100644 --- a/discord/discord.proto +++ b/discord/discord.proto @@ -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 { @@ -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 {