Metadata-Version: 2.4
Name: discord-py-role-panel-lib
Version: 0.0.15
Summary: A library to assist with Discord.py development
Home-page: https://github.com/hashimotok-ecsv/discord-py-role-panel-lib
Download-URL: https://github.com/hashimotok-ecsv/discord-py-role-panel-lib
Author: hashimotok
Author-email: contact@hashimotok.dev
License: MIT
Project-URL: Documentation, https://discord-py-role-panel-lib.readthedocs.io/
Project-URL: Source, https://github.com/hashimotok-ecsv/discord-py-role-panel-lib
Project-URL: Tracker, https://github.com/hashimotok-ecsv/discord-py-role-panel-lib/issues
Keywords: discord.py role panel library
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: discord.py>=2.5.2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# RolePanel for discord.py Library

![PyPI version](https://img.shields.io/pypi/v/discord-py-role-panel-lib.svg)
![Python version](https://img.shields.io/pypi/pyversions/discord-py-role-panel-lib.svg)
![License](https://img.shields.io/pypi/l/discord-py-role-panel-lib.svg)

---

## 📦 概要

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

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

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

---

## ✨ 特徴

- ✅ 簡単に使用が可能

---

## 🔧 インストール

### PyPIからインストール：
```bash
pip install discord-py-role-panel-lib
```
### githubからインストール：
```bash
pip install git+https://github.com/hashimotok-ecsv/discord_py_role_panel_lib.git
```
## 使い方
```python
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()  # どこでエラーが発生したか表示
```
#### 管理者用
##### 更新方法
