Compare commits

..

No commits in common. "9a165460e3a960ffa40ee61f59f19e13f1b2d452" and "f7cff529c2556f7f51ec325390a19248518c8fb6" have entirely different histories.

View File

@ -150,9 +150,9 @@ class Levels(commands.Cog):
@commands.has_permissions(manage_messages=True) @commands.has_permissions(manage_messages=True)
async def give(self, interaction: discord.Interaction, user: discord.Member, xp: int): async def give(self, interaction: discord.Interaction, user: discord.Member, xp: int):
user_coll = db.accounts user_coll = db.accounts
db_user = user_coll.find_one({"_id": user.id}) user = user_coll.find_one({"_id": user.id})
if db_user is None: if user is None:
await interaction.response.send_message(f"Cannot give user {xp} XP because they have not sent a message yet.") await interaction.response.send_message(f"Cannot give user {xp} XP because they have not sent a message yet.")
return return