Don't allow mega-stars
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-05-05 03:04:04 +01:00
parent 0e48d752d5
commit 7a43c204d3
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -139,6 +139,10 @@ class Starboard(commands.Cog):
self.log.warning("Could not find starboard channel in %s (%d)", guild, guild.id) self.log.warning("Could not find starboard channel in %s (%d)", guild, guild.id)
return return
if payload.channel_id == starboard_channel.id:
self.log.debug("Ignoring reaction in starboard channel.")
return
message = await self.get_or_fetch_message(payload.channel_id, payload.message_id) message = await self.get_or_fetch_message(payload.channel_id, payload.message_id)
if payload.user_id == message.author.id: if payload.user_id == message.author.id: