Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referencing client from command files #92

Closed
hbjydev opened this issue Apr 3, 2018 · 3 comments
Closed

Referencing client from command files #92

hbjydev opened this issue Apr 3, 2018 · 3 comments
Labels
t: request Suggestion to add new or change existing content

Comments

@hbjydev
Copy link

hbjydev commented Apr 3, 2018

I notice there's no mention of referencing the client from within a command file in the commands folder. Documentation on how this works would be nice.

@Danktuary Danktuary added question t: request Suggestion to add new or change existing content and removed question labels Apr 3, 2018
@Danktuary
Copy link
Member

There's actually a very small reference to in the adding features section, at the top of the 3rd codeblock. So, whenever you need your client instance, you can use message.client inside any commands.

That being said, I understand that it could be a bit more obvious. Do you have a suggestion on where to place a hint about this?

@hbjydev
Copy link
Author

hbjydev commented Apr 3, 2018

Perhaps in the Common Questions section?

@Danktuary
Copy link
Member

Apologies for the delay. I decided to just add a <p class="tip"> tag in one of the relevant pages, because it's not really a commonly asked question and fits better there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: request Suggestion to add new or change existing content
Projects
None yet
Development

No branches or pull requests

2 participants