diff --git a/cogs/gelbooru_watcher_base_cog.py b/cogs/gelbooru_watcher_base_cog.py index 336eec2..1e8e6f1 100644 --- a/cogs/gelbooru_watcher_base_cog.py +++ b/cogs/gelbooru_watcher_base_cog.py @@ -418,14 +418,14 @@ class GelbooruWatcherBaseCog(commands.Cog, abc.ABC, metaclass=GelbooruWatcherMet async def new_random(self, interaction: discord.Interaction, button: Button): random_result = random.choice(self.all_results) post_url = self.cog.post_url_template.format(random_result["id"]) - content = f"{random_result['file_url']}\n{post_url}" + content = f"<{post_url}>\n{random_result['file_url']}" await interaction.response.edit_message(content=content, view=self) @discord.ui.button(label="Random In New Message", style=discord.ButtonStyle.success) async def new_message(self, interaction: discord.Interaction, button: Button): random_result = random.choice(self.all_results) post_url = self.cog.post_url_template.format(random_result["id"]) - content = f"{random_result['file_url']}\n{post_url}" + content = f"<{post_url}>\n{random_result['file_url']}" await interaction.response.send_message(content, view=self, ephemeral=self.hidden) @discord.ui.button(label="Browse Results", style=discord.ButtonStyle.secondary) @@ -517,7 +517,7 @@ class GelbooruWatcherBaseCog(commands.Cog, abc.ABC, metaclass=GelbooruWatcherMet return random_result = random.choice(self.all_results) post_url = self.cog.post_url_template.format(random_result["id"]) - content = f"{random_result['file_url']}\n{post_url}" + content = f"<{post_url}>\n{random_result['file_url']}" view = self.cog.GelbooruButtons( self.cog, self.tags, self.all_results, self.hidden )