poise-commands

Create Discord slash commands with Poise macros in Rust.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/ErdemGKSL/open-guard-rs --skill poise-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: poise-commands
Source: https://github.com/ErdemGKSL/open-guard-rs/tree/main/.opencode/skill/poise-commands
Command: npx skills add https://github.com/ErdemGKSL/open-guard-rs --skill poise-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers in building Discord slash commands using the Poise framework within the Open Guard bot to streamline command creation and ensure correct interaction handling.

Core Features & Use Cases

  • Create slash commands with Poise macros in Rust.
  • Add parameters, options, and subcommands for modular command design.
  • Integrate commands into Open Guard's lifecycle with predictable responses and best practices.

Quick Start

Install Rust and the Poise-based command module, define a command using #[poise::command], implement the handler, and register the command with the bot to enable immediate testing in a development server.

Frequently Asked Questions about poise-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Discord slash commands using Poise in Rust?

Discord slash commands using Poise are created by applying the #[poise::command] macro, implementing the handler logic, and registering the command within the Open Guard bot lifecycle for safe interaction handling.

Can I add parameters and subcommands to Poise bot commands?

Yes, Poise slash commands support adding parameters and subcommands for modular command design, enabling flexible options and structured interactions within your Rust Discord bot.

Does the Poise framework integrate safely with Open Guard bot interactions?

The Poise framework integrates safely with Open Guard by aligning with its command lifecycle and applying safe interaction practices, ensuring predictable responses across real-world bot scenarios.

What is the best way to structure a modular Discord bot command in Rust?

The best way to structure modular Discord bot commands in Rust is using Poise macros to define commands, attach parameters, and organize subcommands into a predictable response pattern.

Why do my Poise slash commands fail to register in my development server?

Poise slash commands require proper implementation of the handler and explicit registration with the bot to enable testing, ensuring the command lifecycle integrates correctly in your development server.

Do I need Rust to build Discord bots with the Poise framework?

Yes, you need Rust installed to build Discord bots with the Poise framework, as it relies on Rust macros like #[poise::command] for command creation and interaction handling.