Replies: 1 comment
-
This would look something like this: let embed = Embed {
title: Some(username.to_owned()),
description: Some(description.to_owned()),
color: Some(14423100),
fields: Some( vec![ EmbedField {
name: "FieldName".to_owned(),
value: "FieldValue".to_owned(),
inline: false } ]
),
..Default::default()
}; Documentation about Embeded Fields can be found in the Discord API documentation https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure But they are optional. For sending a request to the api you only need to set the title and description field (if I remember correctly). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i want to know how to do a field with the webhook
thx for the answer
Beta Was this translation helpful? Give feedback.
All reactions