Skip to main content

RolePanel for discord.py Library

PyPI version Python version License


📦 概要

discord-py-role-panel-lib は、discord.pyで役職パネルを簡単に実装するための Python ライブラリです。

主な機能は以下のとおりです:

  • /役職パネルコマンド
  • /役職パネル 編集コマンド
  • 役職パネル機能

✨ 特徴

  • ✅ 簡単に使用が可能

🔧 インストール

PyPIからインストール:

pip install discord-py-role-panel-lib

githubからインストール:

pip install git+https://github.com/hashimotok-ecsv/discord_py_role_panel_lib.git

使い方

from discord_py_role_panel_lib.cm import role_panel_cm
from discord_py_role_panel_lib.cmds import role_panel_cmd
from discord_py_role_panel_lib.events import button_click_event as role_panel_button_click_event 

# ~~~~~~~~~~~~

async def setup_hook(self):
    for cog in CMD_COGS:
        try:
            await self.load_extension(cog)
        except Exception:
            traceback.print_exc()
    for cog in EVENT_COGS:
        try:
            await self.load_extension(cog)
        except Exception:
            traceback.print_exc()
    for cog in CM_COGS:
        try:
            await self.load_extension(cog)
        except Exception:
            traceback.print_exc()
    # スラッシュコマンドの同期をここで実行
    try:
        cog = role_panel_cm.RolePanelLibRolePanelContextMenuCog(self)
        await self.add_cog(cog)
        cog = role_panel_cmd.RolePanelLibRolePanelCommandCog(self)
        await self.add_cog(cog)
        cog = role_panel_button_click_event.RolePanelLibButtonClickCog(self)
        await self.add_cog(cog)
    except Exception:
        traceback.print_exc()
    try:
        await self.load_extension("task")
        synced = await self.tree.sync(guild=None)
        print(f"Synced global commands. {synced}")
        for guild in self.guilds:
            synced = await self.tree.sync(guild=discord.Object(id=guild.id))
            print(f"Synced guild command(id={str(guild.id)}). {synced}")
    except Exception:
        traceback.print_exc()  # どこでエラーが発生したか表示

管理者用

更新方法
Remove-Item -Recurse -Force .\dist\
py setup.py sdist
py setup.py bdist_wheel
py -m twine upload --repository testpypi dist/*
py -m twine upload --repository pypi dist/*

Metadata

Release files for discord-py-role-panel-lib 0.0.24

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

Source distribution (sdist)

Source distribution for discord-py-role-panel-lib 0.0.24
File Size Uploaded
discord_py_role_panel_lib-0.0.24.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for discord-py-role-panel-lib 0.0.24
File Interpreter ABI Platform
discord_py_role_panel_lib-0.0.24-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / discord_py_role_panel_lib-0.0.24.tar.gz

Download URL discord_py_role_panel_lib-0.0.24.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e59ae5402167256aeb91f4fa5999dd7d81f4560b0805486c5fbf323745de4478
BLAKE2b-256 checksum
How to use checksums
a96d1667778431ab76214ded7773ff2ef1f6e535db5e72b87f49c54fc6dc3ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release files / discord_py_role_panel_lib-0.0.24-py3-none-any.whl

Download URL discord_py_role_panel_lib-0.0.24-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
053c28607d447059b8cf90e08b6b449591d40a9ee7b424db6bcd0243fbb4e745
BLAKE2b-256 checksum
How to use checksums
5f3710f9d0032cfbb3258295acf7d17853fe0766cbe49b3473bbf78fd9eda55f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.24 This release

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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