From c0b1155b30157eee7ab742d413351fec42b75333 Mon Sep 17 00:00:00 2001 From: nex Date: Fri, 24 Nov 2023 17:39:40 +0000 Subject: [PATCH] Fix starboard not attaching images properly --- cogs/starboard.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cogs/starboard.py b/cogs/starboard.py index 3c00169..657125f 100644 --- a/cogs/starboard.py +++ b/cogs/starboard.py @@ -196,18 +196,6 @@ class StarBoardCog(commands.Cog): async def get_starboard_info(self, ctx: discord.ApplicationContext, message: discord.Message): return await ctx.respond(embed=await self.generate_starboard_embed(message)) - @commands.slash_command(name="threshold") - @commands.guild_only() - async def get_threshold(self, ctx: discord.ApplicationContext): - """Shows you the current starboard threshold""" - if self.bot.intents.members and hasattr(ctx.channel, "members"): - cap = len([x for x in ctx.channel.members if not x.bot]) * 0.1 - else: - cap = ctx.channel.member_count * 0.1 - return await ctx.respond( - f"Messages currently need {cap:.2f} stars in this channel to be posted to the starboard." - ) - def setup(bot): bot.add_cog(StarBoardCog(bot))