Skip to content

Commit

Permalink
Fixed removal of all pings to persist across to database
Browse files Browse the repository at this point in the history
  • Loading branch information
Nydauron committed Apr 24, 2024
1 parent 30f07f1 commit a8c68b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discord/ping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Holds functionality for members to manage their ping subscriptions.
"""

from __future__ import annotations

import asyncio
Expand Down Expand Up @@ -459,7 +460,7 @@ async def pingremove(self, interaction: discord.Interaction, word: str):
"data",
"pings",
user["_id"],
{"$pull": {"word_pings": {}}},
{"$set": {"word_pings": []}},
)
return await interaction.response.send_message(
"I removed all of your pings.",
Expand Down

0 comments on commit a8c68b4

Please sign in to comment.