Skip to content

Macros that allow serenity's send_message and create_responce(Message) to be used like Python keyword arguments.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

aq2r/eq-uilibrium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eq-uilibrium

serenitysend_messagecreate_responce(Message) を Python のキーワード引数のように使用できるマクロ

Macros that allow serenity's send_message and create_responce(Message) to be used like Python keyword arguments

Examples

send_message

/* ----- */

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;

/* ----- */

create_response_msg

/* ----- */

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;

/* ----- */

Lisense

Licensed under either of Apache License, Version2.0 or MIT Lisence at your option.
Copyright (c) 2024 aq2r

About

Macros that allow serenity's send_message and create_responce(Message) to be used like Python keyword arguments.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages