sendToMainChannel

fun sendToMainChannel(discordChannelEnvs: DiscordChannelEnvs, message: String): MessageCreateAction?(source)

Sends a message to the main channel of a Discord guild based on the provided DiscordChannelEnvs.

Return

A MessageCreateAction object that represents the sent message, or null if an error occurred.

Parameters

discordChannelEnvs

The DiscordChannelEnvs value representing the environment key for the main channel ID.

message

The message to be sent to the main channel.


fun sendToMainChannel(discordChannelEnvs: DiscordChannelEnvs, embed: MessageEmbed): MessageCreateAction?(source)

Sends a message embed to the main channel.

Return

The result of sending the message, or null if the message couldn't be sent.

Parameters

discordChannelEnvs

The enum representing the main channel environment.

embed

The embed to be sent.