Bevy Discord Plugin
A very simple, bevy plugin that let you send and receive messages through bevy events.
Installation
Add bevy-discord as your dependency:
Quick Start
// examples/basic_bot.rs
use *;
use *;
use ;
use json;
Example taken from examples/basic_bot.rs
Examples
The examples/ directory contains several example implementations:
basic_bot.rs- Simple message handling and responsereactions.rs- Handling reactions and emoji interactionsslash_commands.rs- Creating and handling slash commands
To run an example:
Note: Remember to replace YOUR_BOT_TOKEN with your actual Discord bot token.
Features
This crate using powerful cargo features.
| Feature | Information |
|---|---|
bot (includes http) |
Discord bot integration for Bevy applications. |
http |
HTTP Client functionality for Discord API interactions. |
All features are comes under full feature.
Limitations
Currently, the following Discord/Serenity features are not supported:
| Feature | Module |
|---|---|
voice |
bot |
Versions
This crate aims to track bevy's versions. It also follows the semver standard. Below is a chart which versions of this crate are compatible with which bevy version:
| Version | Bevy Version |
|---|---|
0.2.x |
0.13.x |
0.3.x |
0.13.x |