Skip to content

feat: plugin support#28

Merged
Quantumlyy merged 18 commits intomainfrom
feat/plugins
Aug 25, 2020
Merged

feat: plugin support#28
Quantumlyy merged 18 commits intomainfrom
feat/plugins

Conversation

@Quantumlyy
Copy link
Copy Markdown
Contributor

No description provided.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 23, 2020

Coverage Status

Coverage decreased (-1.0%) to 36.735% when pulling e5ada22 on feat/plugins into 8475adf on main.

@Quantumlyy Quantumlyy closed this Aug 24, 2020
@Quantumlyy Quantumlyy reopened this Aug 24, 2020
@favna
Copy link
Copy Markdown
Member

favna commented Aug 24, 2020

Is this ready for review or wha? Amount of changes is very... minimal

Comment thread src/lib/SapphireClient.ts Outdated
Comment thread src/lib/plugins/Symbols.ts Outdated
Comment thread src/lib/plugins/PluginManager.ts Outdated
Comment thread src/lib/plugins/PluginManager.ts Outdated
@Quantumlyy Quantumlyy requested a review from kyranet August 25, 2020 17:00
adiologydev
adiologydev previously approved these changes Aug 25, 2020
Copy link
Copy Markdown
Contributor

@adiologydev adiologydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/lib/plugins/PluginManager.ts Outdated
Comment thread src/lib/plugins/PluginManager.ts Outdated
@Quantumlyy Quantumlyy merged commit a992b7e into main Aug 25, 2020
@Quantumlyy Quantumlyy deleted the feat/plugins branch August 25, 2020 18:06
@kyranet kyranet linked an issue Aug 25, 2020 that may be closed by this pull request
Comment thread src/lib/SapphireClient.ts

public static use(plugin: typeof Plugin) {
this.plugins.use(plugin);
return SapphireClient;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this return.. this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SapphireClient and this are the same in this context. Both return the class.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I extend the client, use won't return my client but SapphireClient

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understandable.

@cfanoulis
Copy link
Copy Markdown
Contributor

@all-contributors pls add @QuantumlyTangled for code, plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

discussion: plugin interface definition

7 participants