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)