InteractionResponseBuilder.channelMessage constructor

InteractionResponseBuilder.channelMessage(
  1. MessageBuilder message, {
  2. bool? isEphemeral,
})

Implementation

factory InteractionResponseBuilder.channelMessage(MessageBuilder message, {bool? isEphemeral}) => InteractionResponseBuilder(
      type: InteractionCallbackType.channelMessageWithSource,
      data: _EphemeralMessageBuilder(
        content: message.content,
        nonce: message.nonce,
        tts: message.tts,
        embeds: message.embeds,
        allowedMentions: message.allowedMentions,
        replyId: message.replyId,
        requireReplyToExist: message.requireReplyToExist,
        components: message.components,
        stickerIds: message.stickerIds,
        attachments: message.attachments,
        suppressEmbeds: message.suppressEmbeds,
        suppressNotifications: message.suppressNotifications,
        isEphemeral: isEphemeral,
      ),
    );