How to configure Message
All messages from ItsMyBot can be configured with the following options, offering you even more possibilities.
Message Properties
All the properties you can use in the message configuration. Every property is optional.
- Name
content
- Type
- string
- Description
The content of the message.
- Support multi-line content with the pipe character
|
. - Support random content with a list.
- Hide a line if it's start with
show=false
. (Useful with placeholder)
- Support multi-line content with the pipe character
- Name
embeds
- Type
- array
- Description
All the embeds to send with the message. Find more information here.
- Name
ephemeral
- Type
- boolean
- Description
If true, the bot will send the message as an ephemeral message.
- Only work for message from an interaction
- Name
components
- Type
- array
- Description
All the components to send with the message. Find more information here.
- Name
disable-mentions
- Type
- boolean
- Description
If true, the bot will disable all mentions in the message.
- Name
files
- Type
- list
- Description
All the files to send with the message.
Example
content: Hello there ! I'm a signle line message.
ephemeral: true
Embed Properties
Embeds need to be an array of embeds, you can find all the properties you can use in the embeds configuration, every property is optional.
- Name
author
- Type
- string
- Description
The author of the embed.
- Support random content with a list.
- Name
author-icon
- Type
- url
- Description
The icon of the author.
- Only work if author is set
- Support random content with a list.
- Name
author-url
- Type
- url
- Description
The url of the author.
- Only work if author is set
- Support random content with a list.
- Name
url
- Type
- url
- Description
The url of the embed.
- Only work if title is set
- Support random content with a list.
- Name
title
- Type
- string
- Description
The title of the embed.
- Support random content with a list.
- Name
description
- Type
- description
- Description
The description of the embed.
- Support random content with a list.
- Support multi-line content with the pipe character
|
. - Hide a line if it's start with
show=false
. (Useful with placeholder)
- Name
color
- Type
- color
- Description
The color of the embed.
- Support random content with a list.
- If not set, the bot will use the default color.
- Name
image
- Type
- url
- Description
The image of the embed.
- Support random content with a list.
- Name
thumbnail
- Type
- url
- Description
The thumbnail of the embed.
- Support random content with a list.
- Name
footer
- Type
- string
- Description
The footer of the embed.
- Support random content with a list.
- Name
footer-icon
- Type
- url
- Description
The icon of the footer.
- Only work if footer is set
- Support random content with a list.
- Name
timestamp
- Type
- boolean
- Description
If true, the bot will add a timestamp to the embed.
- Name
fields
- Type
- array
- Description
All the fields of the embed.
Field Properties
- Name
name
- Type
- string
- Description
The name of the field. Required.
- Name
value
- Type
- string
- Description
The value of the field. Required.
- Support multi-line content with the pipe character
|
. - Hide a line if it's start with
show=false
. (Useful with placeholder)
- Support multi-line content with the pipe character
- Name
inline
- Type
- boolean
- Description
If true, the field will be inline.
- Name
show
- Type
- string
- Description
Hide the field if it's return
false
. (Useful with placeholder)
Example
embeds:
- title: Hello there !
description: I'm a signle line embed.
color: "#FF0000"
timestamp: true
Components Properties
Components need to be an array of components, you can find all the properties you can use in the components configuration, every property is optional.
Button Properties
- Name
custom-id
- Type
- string
- Description
The custom id of the button.
- Support random content with a list.
- Name
style
- Type
- string
- Description
The style of the button.
- Support random content with a list.
- Can be
primary
,secondary
,success
,danger
,link
.
- Name
label
- Type
- string
- Description
The label of the button.
- Support random content with a list.
- Name
emoji
- Type
- emoji
- Description
The emoji of the button.
- Support random content with a list.
- Name
url
- Type
- url
- Description
The url of the button.
- Only work if style is
link
or not defined. - Support random content with a list.
- Only work if style is
Select Menu Properties
- Name
custom-id
- Type
- string
- Description
The custom id of the select menu.
- Name
placeholder
- Type
- string
- Description
The style of the button.
- Support random content with a list.
- Can be
primary
,secondary
,success
,danger
,link
.
- Name
min-values
- Type
- integer
- Description
Minimun number of values that can be selected, default to 0.
- Name
max-values
- Type
- integer
- Description
Maximum number of values that can be selected, default to 1.
- Name
options
- Type
- array
- Description
All the options of the select menu.
Options Properties
- Name
label
- Type
- string
- Description
The label of the option. Required.
- Name
value
- Type
- string
- Description
The value of the option. Required.
- Name
emoji
- Type
- emoji
- Description
The emoji of the option.
- Name
description
- Type
- string
- Description
The description of the option.
- Name
default
- Type
- boolean
- Description
If true, the option will be selected by default.
Example
components:
"1":
- type: "button"
label: "First Button"
style: "primary"
custom-id: "button1"
- type: "button"
label: "Second Button"
style: "link"
url: "https://example.com"
emoji: "🔗"
"2":
- type: "select-menu"
custom-id: "select1"
placeholder: "Select an option"
options:
- label: "Option 1"
value: "option1"
- label: "Option 2"
value: "option2"