Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commands.Context object to extract the author id #6367

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions redbot/cogs/audio/apis/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ async def fetch_track(
)
return results, called_api

async def autoplay(self, player: lavalink.Player, playlist_api: PlaylistWrapper):
async def autoplay(self, ctx: commands.Context, player: lavalink.Player, playlist_api: PlaylistWrapper):
"""Enqueue a random track."""
autoplaylist = await self.config.guild(player.guild).autoplaylist()
current_cache_level = CacheLevel(await self.config.cache_level())
Expand All @@ -937,7 +937,7 @@ async def autoplay(self, player: lavalink.Player, playlist_api: PlaylistWrapper)
self.bot,
playlist_api,
player.guild,
player.guild.me,
ctx.author.id
)
tracks = playlist.tracks_obj
except Exception as exc:
Expand Down
Loading