From 44f2f63499ddd4f4ca76a335c6ee42443bae9747 Mon Sep 17 00:00:00 2001 From: Vylpes Date: Mon, 26 Oct 2020 20:33:10 +0000 Subject: [PATCH] Add documentation about user-specific command settings --- docs/index.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 46e98ab..95fbb79 100644 --- a/docs/index.md +++ b/docs/index.md @@ -67,6 +67,7 @@ class test extends command { super.requiredConfigs = "link"; super.roles = "Moderator"; super.roles = "Admin"; + super.users = ""; } test(context) { @@ -84,11 +85,15 @@ module.exports = test; > **Note:** You can set more than one role to be required by setting `super.roles` again. -5. If you want the command to require a variable in the config, set the name in `super.requiredConfigs` +5. If you want the command to only be ran by specific users, set their ID in `super.users` + +> **Note:** You can set more than one user to be required by settubg `super.users` again. + +6. If you want the command to require a variable in the config, set the name in `super.requiredConfigs` > **Note:** You can set more than one role to be required by setting `super.requiredConfigs` again. -6. Create a method using the name you set in `super(run)`, with the `context` as its parameter. +7. Create a method using the name you set in `super(run)`, with the `context` as its parameter. The `context` parameter will be a JSON object of: