Skip to content

Commit 9880afc

Browse files
committed
Fix documentation typos.
1 parent 00e563c commit 9880afc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/gettingstarted.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ role with id ``99999999`` and disallowing user with id ``88888888`` from running
280280
.. code-block:: python
281281
282282
from discord_slash.utils.manage_commands import create_permission
283-
from discord_slash.model import SubcommandApplicationPermissionType
283+
from discord_slash.model import SlashCommandPermissionType
284284
285285
@slash.slash(name="test",
286286
description="This is just a test command, nothing more.",
@@ -302,8 +302,8 @@ Alternatively you can use the ``@slash.permission`` decorator to define your gui
302302
303303
@slash.slash(name="test",
304304
description="This is just a test command, nothing more.")
305-
@slash.permission(guild_id = 12345678,
306-
permission = [
305+
@slash.permission(guild_id=12345678,
306+
permissions=[
307307
create_permission(99999999, SlashCommandPermissionType.ROLE, True),
308308
create_permission(88888888, SlashCommandPermissionType.USER, False)
309309
])

0 commit comments

Comments
 (0)