Skip to content

Allow user direct access to client when initating a plugin #25

@kyrivanderpoel

Description

@kyrivanderpoel

Right now, plugins are initiated only with a plugin configuration. We should give the plugin access to the client created in discordbot.js, so a user can change their plugin code from this:

if (message.author.username != config.client.user.username) {
...

To this:

if (message.author.username != this.client.user.username) {
...

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions