Fix incorrect calculation

This commit is contained in:
eek7574 2022-11-30 21:10:24 +00:00
parent a9a27b08ad
commit 97dcc25535

View file

@ -94,7 +94,7 @@ class StarBoardCog(commands.Cog):
entry, created = database entry, created = database
if created: if created:
# noinspection PyUnresolvedReferences # noinspection PyUnresolvedReferences
cap = message.channel if "thread" in message.channel.type.name else message.guild cap = message.channel
if self.bot.intents.members and hasattr(cap, "members"): if self.bot.intents.members and hasattr(cap, "members"):
cap = len([x for x in cap.members if not x.bot]) * 0.1 cap = len([x for x in cap.members if not x.bot]) * 0.1
else: else: