👍🎉 First off, thanks for taking the time to contribute! 🎉👍
The following is a set of guidelines for contributing to Nostrum. These are just guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
When using the pipe operator |>
, adhere to the following format
request.route
|> major_parameter
|> Bucket.get_ratelimit_timeout
If you want to assign the result of piping, indent the rhs as such
retry_time =
request.route
|> major_parameter
|> Bucket.get_ratelimit_timeout
Before you submit any code, please run the following commands from your terminal:
mix compile --force
mix format
mix credo --strict --ignore 'TagTODO'
mix test --no-start
mix dialyzer
or simply:
mix compile --force && mix format && mix credo --strict --ignore 'TagTODO' && mix test --no-start && mix dialyzer
Please fix any warnings that appear.
If you want to go the extra mile for your pull request (and save the
maintainers some work), you can update the appup
file according
to your changes, see the Appup
Cookbook for
details.