Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Enforce minimum permission in the rest methods #355

Open
andersfylling opened this issue Nov 25, 2020 · 0 comments
Open

Enforce minimum permission in the rest methods #355

andersfylling opened this issue Nov 25, 2020 · 0 comments

Comments

@andersfylling
Copy link
Owner

There is no permission check locally before the request is sent, and this is both a waste of time and rate limits.

Add minimum permissions required to sent a given request in the method itself. Params should be added ontop as needed, as these can be dynamic.

Suggestions:

  1. An exported function that links the function pointer to a set of permissions. This way disgord users can also check what base permissions a REST method requires.
  2. Specify the permissions directly in the method itself. Giving outsiders no information unless the method is called.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant