feat(Client): enforce passing scopes to generateInvite (#6024)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
monbrey
2021-07-05 07:53:57 +10:00
committed by GitHub
parent 9e08b02df2
commit c6e5521687
4 changed files with 27 additions and 15 deletions

View File

@@ -132,6 +132,8 @@ const Messages = {
INTERACTION_EPHEMERAL_REPLIED: 'Ephemeral responses cannot be fetched or deleted.',
INTERACTION_FETCH_EPHEMERAL: 'Ephemeral responses cannot be fetched.',
INVITE_MISSING_SCOPES: 'At least one valid scope must be provided for the invite',
NOT_IMPLEMENTED: (what, name) => `Method ${what} not implemented on ${name}.`,
};