Skip to content

Commit

Permalink
only delete invoking if set to
Browse files Browse the repository at this point in the history
Also add missing expire_in
  • Loading branch information
BabyBoySnow committed Nov 11, 2023
1 parent 5fe6209 commit 24e2798
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,11 +1008,12 @@ async def safe_send_message(self, dest, content, **kwargs):
if self.config.delete_messages:
if msg and expire_in:
asyncio.ensure_future(self._wait_delete_msg(msg, expire_in))


if self.config.delete_invoking:
if also_delete and isinstance(also_delete, discord.Message):
asyncio.ensure_future(self._wait_delete_msg(also_delete, expire_in))

return msg
return msg

async def safe_delete_message(self, message, *, quiet=False):
lfunc = log.debug if quiet else log.warning
Expand Down Expand Up @@ -1924,6 +1925,7 @@ async def cmd_move(self, channel, command, leftover_args):
"cmd-move-success",
"Successfully moved the requested song from positon number {} in queue to position {}!",
).format(indexes[0] + 1, indexes[1] + 1),
expire_in=30,
),

song = player.playlist.delete_entry_at_index(indexes[0])
Expand Down

0 comments on commit 24e2798

Please sign in to comment.