From d953b86cdf968256920c47de3700a33808a25141 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 2 Sep 2021 00:32:22 -0300 Subject: [PATCH] s/remove/pop --- litecord/blueprints/dms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/dms.py b/litecord/blueprints/dms.py index 0b8cb1c..5c7ad31 100644 --- a/litecord/blueprints/dms.py +++ b/litecord/blueprints/dms.py @@ -54,7 +54,7 @@ async def jsonify_dm(dm_id: int, user_id: int): lambda user: user["id"] == str(user_id), dm_chan["recipients"] ) assert self_user_index is not None - dm_chan["recipients"].remove(self_user_index) + dm_chan["recipients"].pop(self_user_index) return jsonify(dm_chan)