twilight-interactions
is a set of macros and utilities to work with Discord Interactions using twilight
.
Note: This crate is not affiliated with the twilight
project.
CommandModel
macro.CreateCommand
macro. Commands are configured using attributes.```rust use twilight_interactions::command::{CommandModel, CreateCommand, ResolvedUser};
struct HelloCommand {
/// Message to send
message: String,
/// User to send the message to
user: Option
To install twilight-interactions
, add the following to your Cargo.toml
:
toml
[dependencies]
twilight-interactions = "0.13"
The crate's major version follows the version of the official twilight crates.
The MSRV is two versions behind the latest stable version (current is 1.60
)
and can be bumped in minor updates.
The API documentation is available on docs.rs: twilight-interactions
documentation.
There is no particular contribution guidelines, feel free to open a new PR to improve the code. If you want to introduce a new feature, please create an issue before.
Special thanks to LeSeulArtichaut who worked the first on this project.