aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/stop.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-12-03 06:05:14 +0000
committerGitHub <noreply@github.com>2024-12-03 06:05:14 +0000
commit15e33831639355546b32477a6870eb0a3ac47e24 (patch)
treea5455e0a8391747c7226a751354b7236c8c5d40b /code/cogs/stop.py
parentfcbfe460701316ded25e29356ed1fda42386e5c0 (diff)
parentce18cd27488d90fbd0aae7319a36a89e9fa85aa7 (diff)
Merge pull request #10 from PacketParker/dev
Update
Diffstat (limited to 'code/cogs/stop.py')
-rw-r--r--code/cogs/stop.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/code/cogs/stop.py b/code/cogs/stop.py
index 3992391..f249761 100644
--- a/code/cogs/stop.py
+++ b/code/cogs/stop.py
@@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
-from utils.config import BOT_COLOR
+from utils.config import create_embed
class Stop(commands.Cog):
@@ -25,19 +25,12 @@ class Stop(commands.Cog):
await player.stop()
await interaction.guild.voice_client.disconnect(force=True)
- embed = discord.Embed(
+ embed = create_embed(
title="Queue Cleared and Music Stopped",
description=(
- "Thank you for using me :wave:\n\nIssued by:"
- f" {interaction.user.mention}"
+ f"Thank you for using {self.bot.user.mention}\n\n"
+ f"Issued by: {interaction.user.mention}"
),
- color=BOT_COLOR,
- )
- embed.set_footer(
- text=datetime.datetime.now(datetime.timezone.utc).strftime(
- "%Y-%m-%d %H:%M:%S"
- )
- + " UTC"
)
await interaction.response.send_message(embed=embed)