Data Structures
Check the data structure wiki to know how to use them!
Embed
Creation Expression: new embed
Embed Properties
Key | Type | Accepting Type | Optional | Example Value |
---|---|---|---|---|
title |
Single | String | "Hello World" |
|
description |
Single | String | "This is a description" |
|
footer |
Single | String | "This is a footer" |
|
footer icon |
Single | String (URL) | "https://example.com/icon.png" |
|
thumbnail |
Single | String (URL) | "https://example.com/thumbnail.png" |
|
image |
Single | String (URL) | "https://example.com/image.png" |
|
color |
Single | Skript color | blue |
|
url |
Single | String (URL) | "https://example.com" |
|
author |
Single | String | "Author Name" |
|
author url |
Single | String (URL) | "https://example.com" |
|
author icon |
Single | String (URL) | "https://example.com/icon.png" |
|
timestamp |
Single | Date | now |
|
field |
Repeatable | Field | - |
Field Properties
Key | Type | Accepting Type | Optional | Example Value |
---|---|---|---|---|
name |
Single | String | "Field Name" |
|
value |
Single | String | "Field Value" |
|
inline |
Single | Boolean | true |
set {_e} to new embed:
title: "Hello World"
description: "This is a description"
footer: "This is a footer"
footer icon: "https://example.com/icon.png"
thumbnail: "https://example.com/thumbnail.png"
image: "https://example.com/image.png"
color: blue
url: "https://example.com"
author: "Author Name"
author url: "https://example.com"
author icon: "https://example.com/icon.png"
timestamp: now
field:
name: "Field Name"
value: "Field Value"
inline: true
Button
Creation Expression: new button
Button Properties
Key | Type | Accepting Type | Optional | Example Value |
---|---|---|---|---|
style |
Single | ButtonStyle | primary |
|
emote |
Single | Emote | reaction "👋" |
|
label |
Single | String | "Click me!" |
|
url |
Single | String (URL) | "https://example.com" |
|
disabled |
Single | Boolean | false |
|
id |
Single | String | "unique-button-id" |
Validation Rules
- Either
label
ORemote
must be present - Either
id
ORurl
must be present - If
url
is set, the button becomes a link button andstyle
is ignored