Update the right database when removing admins
This commit is contained in:
parent
4bb9a74af1
commit
919dfcb4a0
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ class OwnerCog(commands.Cog):
|
|||
await ctx.send(f"{user.mention} is already an admin.")
|
||||
return
|
||||
self.admins.append(user.id)
|
||||
self.db.mongo.jarvis.settings.update_one(
|
||||
self.db.mongo.jarvis.config.update_one(
|
||||
{"key": "admins"}, {"$set": {"value": self.admins}}
|
||||
)
|
||||
await ctx.send(
|
||||
|
@ -182,7 +182,7 @@ class OwnerCog(commands.Cog):
|
|||
if user.id not in self.admins:
|
||||
await ctx.send(f"{user.mention} is not an admin.")
|
||||
return
|
||||
self.db.mongo.jarvis.settings.update_one(
|
||||
self.db.mongo.jarvis.config.update_one(
|
||||
{"key": "admins"}, {"$set": {"value": self.admins}}
|
||||
)
|
||||
reload_config()
|
||||
|
|
Loading…
Add table
Reference in a new issue