16 releases

0.6.1 Jan 11, 2024
0.6.1-rc1 Dec 10, 2023
0.6.0 Nov 28, 2023
0.5.5 Apr 27, 2023
0.3.0 Jul 28, 2022

#3 in #poise

Download history 3099/week @ 2025-09-01 3390/week @ 2025-09-08 3050/week @ 2025-09-15 3891/week @ 2025-09-22 2911/week @ 2025-09-29 2575/week @ 2025-10-06 2674/week @ 2025-10-13 4803/week @ 2025-10-20 4531/week @ 2025-10-27 3347/week @ 2025-11-03 2840/week @ 2025-11-10 2955/week @ 2025-11-17 2869/week @ 2025-11-24 2949/week @ 2025-12-01 3408/week @ 2025-12-08 498/week @ 2025-12-15

10,193 downloads per month
Used in 25 crates (via poise)

MIT license

53KB
921 lines

Procedural macros used in poise, like [macro@command]


Build crates.io Docs Docs (git) License: MIT Rust: 1.74+

Poise

Poise is an opinionated Discord bot framework with a few distinctive features:

  • slash commands: completely define slash commands with a single function signature
  • flexible argument parsing: command parameters are defined with normal Rust types and parsed automatically
  • text commands: commands are agnostic over old text-based commands and slash commands
  • edit tracking: when user edits their message, automatically update bot response

How to use

Most information is in the API documentation. Also take a look at the examples, especially feature_showcase, to learn what poise can do.

If you're using a development version from git directly, you probably want to look at the documentation for the current or next branch instead.

For further questions, don't hesitate to join the support server: https://discord.gg/serenity-rs.

Bots using poise

For each bot, there's a list of notable features for you to take inspiration from.

You're welcome to add your own bot via a PR!

For more projects, see GitHub's Used By page.

Dependencies

~0.5–1MB
~20K SLoC