ソースを参照

change challenge to more pythonic way of checking if list is empty

tags/v2.0.0
Roxie Gibson 5年前
コミット
dcb2e129fe
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      roxbot/cogs/voice.py

+ 1
- 1
roxbot/cogs/voice.py ファイルの表示

@@ -416,7 +416,7 @@ class Voice:
paginator = commands.Paginator(prefix="", suffix="")
index = 1

if len(self.playlist[ctx.guild.id]) == 0:
if not self.playlist[ctx.guild.id]:
return await ctx.send("Nothing is up next. Maybe you should add something!")
else:
for video in self.playlist[ctx.guild.id]:

読み込み中…
キャンセル
保存