Skip to content

Commit

Permalink
update self summon to pass message
Browse files Browse the repository at this point in the history
Added setting lnp in summon, which uses message so we need to pass it in our calls.
  • Loading branch information
BabyBoySnow committed Mar 7, 2024
1 parent 611f4c0 commit 03c10ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3021,7 +3021,7 @@ async def _cmd_play(
await channel.typing()

if not player and permissions.summonplay and channel.guild:
response = await self.cmd_summon(channel.guild, author)
response = await self.cmd_summon(channel.guild, author, message)
if response:
if self.config.embeds:
content = self._gen_embed()
Expand Down Expand Up @@ -3273,6 +3273,7 @@ async def cmd_stream(
guild: discord.Guild,
author: discord.Member,
permissions: PermissionGroup,
message: discord.Message,
song_url: str,
) -> CommandResponse:
"""
Expand All @@ -3290,7 +3291,7 @@ async def cmd_stream(
if _player:
player = _player
elif permissions.summonplay:
response = await self.cmd_summon(guild, author)
response = await self.cmd_summon(guild, author, message)
if response:
if self.config.embeds:
content = self._gen_embed()
Expand Down

0 comments on commit 03c10ea

Please sign in to comment.