Fix test message to use view

This commit is contained in:
Codex 2025-06-05 21:45:09 +00:00 committed by Slipstream
parent 68603355c0
commit 7b5317f06d
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -337,13 +337,13 @@ class LoggingCog(commands.Cog):
await ctx.send(f"✅ Successfully configured logging to send messages to {channel.mention} via the new webhook `{new_webhook.name}`.")
# Test send (optional)
try:
test_embed = self._create_log_embed(
test_view = self._create_log_embed(
"✅ Logging Setup Complete",
f"Logs will now be sent to this channel via the webhook `{new_webhook.name}`.",
color=discord.Color.green(),
)
await new_webhook.send(
embed=test_embed,
view=test_view,
username=webhook_name,
avatar_url=self.bot.user.display_avatar.url,
)