Commit 05dc34be authored by Jens Reidel's avatar Jens Reidel

hopefully fix caching issues by re-enabling members intent

parent 1d5083aa
Pipeline #2084 canceled with stages
......@@ -65,14 +65,11 @@ class GlobalEvents(commands.Cog):
self.bot.logger.warning("[INFO] Discord fired on_ready...")
@commands.Cog.listener()
async def on_member_update(self, before, after):
async def on_user_update(self, before, after):
self.bot.logger.info(f"User updated fired for {after}")
MemberConverter.convert.invalidate_value(lambda member: member.id == after.id)
User.convert.invalidate_value(lambda user: user.id == after.id)
role_ids = [r.id for r in after.roles]
if after.guild.id == self.bot.config.support_server_id and any(
id_ in role_ids for id_ in self.bot.config.donator_roles
):
await self.bot.clear_donator_cache(after.id)
await self.bot.clear_donator_cache(after.id)
@commands.Cog.listener()
async def on_guild_remove(self, guild):
......
......@@ -1106,7 +1106,7 @@ IdleRPG is a global bot, your characters are valid everywhere"""
await self.bot.pool.execute(
'UPDATE profile SET "name"=$1 WHERE "user"=$2;', name, ctx.author.id
)
await self.bot.cache.update_profile_cols_rel(ctx.author.id, name=name)
await self.bot.cache.update_profile_cols_abs(ctx.author.id, name=name)
await ctx.send(_("Character name updated."))
elif len(name) < 3:
await ctx.send(_("Character names must be at least 3 characters!"))
......
......@@ -57,6 +57,7 @@ cluster_name = sys.argv[4]
# Configure intents
intents = discord.Intents.none()
intents.guilds = True
intents.members = True
intents.voice_states = True
intents.messages = True
intents.reactions = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment