File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
from discord .ext import commands
9
9
import asyncpg # 追加
10
10
from dotenv import load_dotenv # 追加
11
+ from discord .app_commands import Transform , RoleTransformer # 追加
11
12
12
13
logger = logging .getLogger (__name__ )
13
14
@@ -151,7 +152,7 @@ async def create_panel(
151
152
@role_panel_group .command (name = "add" , description = "ロールパネルにロールを追加します" )
152
153
@app_commands .describe (
153
154
panel_id = "ロールパネルのメッセージID" ,
154
- role = "追加するロール" ,
155
+ role = "追加するロール(ロールが表示されない場合は、ロールIDを入力してください) " ,
155
156
emoji = "関連付けるリアクション絵文字" ,
156
157
description = "ロールの説明(任意)"
157
158
)
@@ -160,7 +161,7 @@ async def add_role(
160
161
self ,
161
162
interaction : discord .Interaction ,
162
163
panel_id : str ,
163
- role : discord .Role ,
164
+ role : Transform [ discord .Role , RoleTransformer ], # 修正
164
165
emoji : str ,
165
166
description : str = ""
166
167
):
You can’t perform that action at this time.
0 commit comments