update from audio api changes

This commit is contained in:
brandons209 2020-07-02 21:32:23 -04:00
parent 70fc0c612a
commit eef391c268

View file

@ -173,7 +173,7 @@
ctx, title=_("This track is not allowed in this server.")
)
elif guild_data["maxlength"] > 0:
if self.is_track_too_allowed(single_track, guild_data["maxlength"]):
if self.is_track_length_allowed(single_track, guild_data["maxlength"]):
player.add(ctx.author, single_track)
player.maybe_shuffle()
self.bot.dispatch(