Skip to content

Commit 8c39cec

Browse files
committed
Remove duplicate ids when on create_multi_ids_permission.
1 parent 3526d6f commit 8c39cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/utils/manage_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def create_multi_ids_permission(ids: typing.List[int], id_type: int, permission:
347347
:param id_type: Type of the id.
348348
:param permission: State of the permission. ``True`` to allow access, ``False to disallow access.
349349
"""
350-
return [create_permission(id, id_type, permission) for id in ids]
350+
return [create_permission(id, id_type, permission) for id in set(ids)]
351351

352352

353353
def generate_permissions(

0 commit comments

Comments
 (0)