refactor: add helper for sending messages in channel

This commit is contained in:
2025-01-05 18:26:45 -05:00
parent c27998abc7
commit ac2fc1c52d
2 changed files with 8 additions and 2 deletions

View File

@@ -357,11 +357,11 @@ def play_next(message, once=False):
)
except Exception as e:
client.loop.create_task(
message.channel.send(f"error while trying to play: `{e}`")
utils.channel_send(message, f"error while trying to play: `{e}`")
)
return
client.loop.create_task(
message.channel.send(f"**0.** {queued.format(show_queuer=True)}")
utils.channel_send(message, f"**0.** {queued.format(show_queuer=True)}")
)