Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

[TYPO] Mistake in function msg.hasAtleastPermissionLevel(#) #63

Closed
kashalls opened this issue Oct 25, 2017 · 1 comment
Closed

[TYPO] Mistake in function msg.hasAtleastPermissionLevel(#) #63

kashalls opened this issue Oct 25, 2017 · 1 comment
Labels
Bug: Fixed Issues that report bugs and have been fixed.

Comments

@kashalls
Copy link
Contributor

kashalls commented Oct 25, 2017

Apparently, on the docs, it shows this for checking the Permission level of a msg.

msg.hasAtleastPermissionLevel(#)

However, when testing this it ends up returning:
0|app | [2017-10-24 19:12:40] TypeError: msg.hasAtleastPermissionLevel is not a function 0|app | [2017-10-24 19:12:40] at module.exports.run (/home/jordan/Sistine/commands/Currency/balance.js:38:31) 0|app | [2017-10-24 19:12:40] at msg.validateArgs.then (/home/jordan/Sistine/monitors/commandHandler.js:66:19) 0|app | [2017-10-24 19:12:40] at <anonymous>

The function ends up working if you capitalize the l in Atleast to AtLeast.
https://dancing.while-at.work/3f4e0f.png

@bdistin
Copy link
Contributor

bdistin commented Oct 25, 2017

It's Atleast. Feel free to pr the correct capitalization to the docs.

@kyranet kyranet added the Bug: Fixed Issues that report bugs and have been fixed. label Jan 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Fixed Issues that report bugs and have been fixed.
Projects
None yet
Development

No branches or pull requests

3 participants