Skip to content

Commit 7c9550c

Browse files
Apply suggestions from code review
Co-authored-by: Sam <[email protected]>
1 parent 0b1449e commit 7c9550c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

discord_slash/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,10 @@ def __eq__(self, other):
407407

408408
class GuildPermissionsData:
409409
"""
410-
Slash permissions data for a guild.
410+
Slash permissions data for a command in a guild.
411411
412412
:ivar id: Command id, provided by discord.
413+
:ivar guild_id: Guild id that the permissions are in.
413414
:ivar permissions: List of permissions dict.
414415
"""
415416
def __init__(self, id, permissions, **kwargs):

discord_slash/utils/manage_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def create_permission(id:int, id_type: int, permission: typing.Union[bool, Slash
321321
322322
:param id: Target id to apply the permission on.
323323
:param id_type: Type of the id, :class:`..model.SlashCommandPermissionsType`.
324-
:param permission: State of the permission. ``True`` to allow access, ``False to disallow access.
324+
:param permission: State of the permission. ``True`` to allow access, ``False`` to disallow access.
325325
:return: dict
326326
"""
327327
if not isinstance(id_type, int) or isinstance(id_type, bool): #Bool values are a subclass of int

0 commit comments

Comments
 (0)