Skip to content

Commit 0e4b9ec

Browse files
authored
Update gettingstarted.rst
Fixed grammatical errors in the "Want to restrict access? Setup permissions!" section
1 parent 5d67fb1 commit 0e4b9ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/gettingstarted.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ a string or integer. Below is an implementation of this design in the Python cod
232232
Want to restrict access? Setup permissions!
233233
-------------------------------------------
234234

235-
Slash commands also supports ability to set permissions to allow only certain roles and/or users
235+
Slash commands also support the ability to set permissions to allow only certain roles and/or users
236236
to run a slash command. Permissions can be applied to both global and guild based commands. They
237-
are defined per guild ,per top-level command (the base command for subcommands), and each guild can have multiple permissions. Here table that shows the JSON
237+
are defined per guild, per top-level command (the base command for subcommands), and each guild can have multiple permissions. Here is the table that shows the JSON
238238
structure of how permissions are represented:
239239

240240
+-------------+--------------------------------------------+-----------------------------------------------------------------------------------------------------+
@@ -269,12 +269,12 @@ This is an example of how a single permission will look when represented as a js
269269
"permission": True
270270
}
271271
272-
Now, let take a look at an example. The slash command decorator have a permissions parameter where
272+
Now, let take a look at an example. The slash command decorator has a permissions parameter where
273273
it takes in a dictionary. The key being the guild id to apply permissions on, and value being the list
274274
of permissions to apply. For each permission, we can use the handy ``create_permission`` method to
275-
build the permission json explain above.
275+
build the permission json explained above.
276276

277-
In this case, we are setting 2 permissions for guild with id of ``12345678``. Firstly, we are allowing
277+
In this case, we are setting 2 permissions for a guild with an id of ``12345678``. Firstly, we are allowing
278278
role with id ``99999999`` and disallowing user with id ``88888888`` from running the slash command.
279279

280280
.. code-block:: python

0 commit comments

Comments
 (0)