Skip to main content

pycord-multicog

Downloads Discord

A pycord extension that allows splitting command groups into multiple cogs.

Installation

Requires pycord v2.5 or higher.

$ pip install pycord-multicog

Usage

Initialising bot

from pycord.multicog import Bot

bot = Bot(...)

Creating commands

# cog number 1, a normal cog with a slash command group
class Cog1(Cog):
    group = SlashCommandGroup("group")

    @group.command()
    async def subcommand1(self, ctx):
        await ctx.respond("This is a normal subcommand.")


# cog number 2, has commands decorated with @subcommand
from pycord.multicog import subcommand

class Cog2(Cog):
    @subcommand("group")  # this subcommand depends on the group defined in Cog1
    @slash_command()
    async def subcommand2(self, ctx):
        await ctx.respond("This subcommand is inside a different cog.")

    @subcommand("group", independent=True)  # this subcommand is independent
    @slash_command()
    async def subcommand2(self, ctx):
        await ctx.respond("This subcommand is also inside a different cog.")

Metadata

Release files for pycord-multicog 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycord-multicog 2.1.1
File Size Uploaded Provenance Actions
pycord-multicog-2.1.1.tar.gz 4.0 kB Without provenance Details for pycord-multicog-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycord-multicog 2.1.1
File Interpreter ABI Platform Actions
pycord_multicog-2.1.1-py3-none-any.whl Python 3 none any Details for pycord_multicog-2.1.1-py3-none-any.whl

Total release size: 8.3 kB

Release files / pycord-multicog-2.1.1.tar.gz

Download URL pycord-multicog-2.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2c56b916d14c06bc3695fdd591cd902a1394d13eaad8b1cadc3ea3e70696e71f
BLAKE2b-256 checksum
How to use checksums
c17ebaa13ef1a35314f6732b77b2aee4f4e902cae22ea4dd99d95ec671ef4821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Release files / pycord_multicog-2.1.1-py3-none-any.whl

Download URL pycord_multicog-2.1.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
847328f9c49970e58c53d5eb19b945aad64ae95ba8b6dd40fa6b8b8ca3100c0f
BLAKE2b-256 checksum
How to use checksums
4b4ae5be5c68bf9a071b056df70960924185f25266d3b2cca3c74ce35a057769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Security for pycord-multicog 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page