Spaces:
Paused
Paused
add
Browse files- bot_main.py +2 -2
bot_main.py
CHANGED
|
@@ -53,8 +53,8 @@ def get_pick_embed(player):
|
|
| 53 |
return embed
|
| 54 |
|
| 55 |
@bot.hybrid_command(description="會從<<指定語音頻道>>和<<指定其他玩家名稱>>中選路線")
|
| 56 |
-
|
| 57 |
-
async def
|
| 58 |
# 搜尋指定名稱的語音頻道
|
| 59 |
voice_channel = discord.utils.get(ctx.guild.voice_channels, name=channel_name)
|
| 60 |
try:
|
|
|
|
| 53 |
return embed
|
| 54 |
|
| 55 |
@bot.hybrid_command(description="會從<<指定語音頻道>>和<<指定其他玩家名稱>>中選路線")
|
| 56 |
+
@app_commands.describe(channel_name="語音頻道名稱",other_user="其他玩家名稱")
|
| 57 |
+
async def PICK(ctx, channel_name="",other_user=""):
|
| 58 |
# 搜尋指定名稱的語音頻道
|
| 59 |
voice_channel = discord.utils.get(ctx.guild.voice_channels, name=channel_name)
|
| 60 |
try:
|