CommandResult

constructor()

calls CommandResult with default arguments.

See also


constructor(@Nullable content: String)

calls CommandResult with default arguments.

Parameters

content

Output message content

See also


constructor(@Nullable content: String, @Nullable embeds: List<MessageEmbed>, send: Boolean)

Parameters

content

Output message content

embeds

Embeds to include in the command output. Requires send to be false.

send

Whether to send the message or not. If false, messages will appear locally, otherwise they'll be sent to the current channel.


constructor(@Nullable content: String, @Nullable embeds: List<MessageEmbed>, send: Boolean, username: String)

Parameters

content

Output message content

embeds

Embeds to include in the command output. Requires send to be false.

send

Whether to send the message or not. If false, messages will appear locally, otherwise they'll be sent to the current channel.

username

Username for Clyde's customization. Requires send to be false.


constructor(@Nullable content: String, @Nullable embeds: List<MessageEmbed>, send: Boolean, @Nullable username: String, @Nullable avatarUrl: String)

Parameters

content

Output message content

embeds

Embeds to include in the command output. Requires send to be false.

send

Whether to send the message or not. If false, messages will appear locally, otherwise they'll be sent to the current channel.

username

Username for Clyde. Requires send to be false.

avatarUrl

Avatar URL for Clyde, must be a direct link, not a redirect. Requires send to be false.


constructor(@Nullable content: String, @Nullable embeds: List<MessageEmbed>, send: Boolean, @Nullable username: String, @Nullable avatarUrl: String, @Nullable buttons: List<ButtonsAPI.ButtonData>)

Parameters

content

Output message content

embeds

Embeds to include in the command output. Requires send to be false.

send

Whether to send the message or not. If false, messages will appear locally, otherwise they'll be sent to the current channel.

username

Username for Clyde. Requires send to be false.

avatarUrl

Avatar URL for Clyde, must be a direct link, not a redirect. Requires send to be false.

buttons

Button components that will appear on the response message