Skip to content

Commit

Permalink
Update commands.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev authored Feb 13, 2024
1 parent 79951de commit f295dab
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions commands/eval/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@ async def refresh(self, ctx: disnake.ApplicationCommandInteraction,
raise MessageException("Missing Manage Server Permissions and/or not whitelisted for this command (`/whitelist add`")

db_server = await self.bot.ck_client.get_server_settings(server_id=ctx.guild_id)
if not ctx.guild.chunked:
embed = disnake.Embed(
description=f"The bot is pulling your member info from the discord API, please try again in a few minutes.",
color=db_server.embed_color)
await ctx.edit_original_message(embed=embed)
if ctx.guild.id not in self.bot.STARTED_CHUNK:
await ctx.guild.chunk(cache=True)
else:
self.bot.STARTED_CHUNK.add(ctx.guild.id)
return


if advanced_mode:
options = []
for option in DEFAULT_EVAL_ROLE_TYPES:
Expand Down

0 comments on commit f295dab

Please sign in to comment.