Crate rusty_interaction[][src]

Rusty-interaction is a library that allows you to work with Discord’s new Interactions. It can expose types and provides helper functions to validate your Interactions. It can optionally provide a handler that allows you to receive interactions via outgoing webhook.

Note that Discord also has official documentation.

Examples

See the examples directory.

Re-exports

pub use actix;
pub use actix_web;

Modules

handler

Provides an entire handler to handle Discord interactions.

security

Provides a helper function to validate Discord interactions.

types

Exposes useful data models

Macros

ERROR_RESPONSE

Macro that generates an HttpResponse containing a message serialized in JSON

Attribute Macros

defer

Send out a deffered channel message response before doing work.

slash_command

Convenience procedural macro that allows you to bind an async function to the [InteractionHandler]