Skip to content

Commit fec21a6

Browse files
committed
Dont need to cast, should already be int.
1 parent 77e6a71 commit fec21a6

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
@@ -334,7 +334,7 @@ def create_permission(id:int, id_type: typing.Union[int, SlashCommandPermissionT
334334
raise IncorrectType(f"The type {original_type} is not recognized as a type that Discord accepts for slash command permissions.")
335335
return {
336336
"id": id,
337-
"type": int(id_type),
337+
"type": id_type,
338338
"permission": permission
339339
}
340340

0 commit comments

Comments
 (0)