Skip to content

Commit

Permalink
Update docs/getting-started/creating-your-first-bot.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
  • Loading branch information
Lulalaby and Dorukyum authored Apr 20, 2024
1 parent 155aaca commit 47b38c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/creating-your-first-bot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ decorator to define a slash command. We specify the `name` and `description` arg
specified, the name of the slash command would be the function name and the command description would
be empty.

Optional: We typehint [': discord.ApplicationContext'](https://docs.pycord.dev/en/stable/api/application_commands.html#discord.ApplicationContext) to get access to autocompletion and docstrings.
Optional: We type-hint the context parameter (`ctx`) as [`discord.ApplicationContext`](https://docs.pycord.dev/en/stable/api/application_commands.html#discord.ApplicationContext). In modern IDEs, type-hinting allows access to autocompletion and docstrings. You can read more about type-hinting [here](https://docs.python.org/3/library/typing.html).

Finally, you want to run the bot using the token specified in the `.env` file.

Expand Down

0 comments on commit 47b38c7

Please sign in to comment.