Don't allow mega-stars
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
0e48d752d5
commit
7a43c204d3
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue