serenity
の send_message
と create_responce(Message)
を Python のキーワード引数のように使用できるマクロ
Macros that allow serenity
's send_message
and create_responce(Message)
to be used like Python keyword arguments
/* ----- */
let embed = CreateEmbed::new().title("embed").description("description");
eq_uilibrium::send_msg!(&http, channel_id, embed = embed, tts = true).await;
// let builder = CreateMessage::new().content("content").tts(true).embed(embed);
// let _ = channel_id.send_message(&http, builder).await;
/* ----- */
/* ----- */
let embed = CreateEmbed::new().title("embed").description("description");
eq_uilibrium::create_response_msg!(&http, interaction, embed = embed, tts = true).await;
// let message = CreateInteractionResponseMessage::new().embed(embed);
// let builder = CreateInteractionResponse::Message(message);
// interaction.create_response(&http, builder).await;
/* ----- */
Copyright (c) 2024 aq2r