sendToChannel

fun sendToChannel(guildEnv: String = "GUILD_ID", channelEnv: String, message: String): MessageCreateAction?(source)
fun sendToChannel(guildEnv: String = "GUILD_ID", channelEnv: String, message: MessageCreateData): MessageCreateAction?(source)

Sends a message to a specified channel in a guild.

Parameters

guildEnv

The environment key for the guild ID.

channelEnv

The environment key for the channel ID.

message

The message to be sent.


fun sendToChannel(guildId: String, channelId: String, embed: MessageEmbed): MessageCreateAction?(source)

Sends a message embed to the specified channel in a guild.

Parameters

guildId

The environment key for the guild ID.

channelId

The environment key for the channel ID.

embed

The embed to be sent.