diff --git a/cogs/logging_cog.py b/cogs/logging_cog.py index cae01bb..54cf6b9 100644 --- a/cogs/logging_cog.py +++ b/cogs/logging_cog.py @@ -295,8 +295,12 @@ 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("✅ 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, username=webhook_name, avatar_url=self.bot.user.display_avatar.url) + test_embed = 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(view=test_embed, username=webhook_name, avatar_url=self.bot.user.display_avatar.url) except Exception as e: log.error(f"Failed to send test message via new webhook for guild {guild.id}: {e}") await ctx.send("⚠️ Could not send a test message via the new webhook, but the URL has been saved.")