mirror of
https://github.com/sern-handler/awesome-plugins
synced 2026-06-06 01:16:51 +00:00
1.6 KiB
1.6 KiB
Plugin Submission Checklist
Before submitting your plugin, please ensure that you have followed the specifications below:
- Your plugin code includes a JSDoc block with
@pluginat the beginning and@endat the end. - The order of plugin metadata within the JSDoc block follows the structure provided:
@plugindescription@author(you can have multiple authors in this format:@author @jacoobes [<@182326315813306368>])@version(with the version number)@example(a nice example of how to use your plugin)@end
this is an example:
/**
* @plugin
* filters autocomplete interaction that pass the criteria
* @author @jacoobes [<@182326315813306368>]
* @version 1.0.0
* @example
* ```ts
* import { CommandType, commandModule } from "@sern/handler";
* import { filterA } from '../plugins/filterA.js'
* export default commandModule({
* type : CommandType.Slash,
* options: [
* {
* autocomplete: true,
* command : {
* //only accept autocomplete interactions that include 'poo' in the text
* onEvent: [filterA(s => s.includes('poo'))],
* execute: (autocomplete) => {
* let data = [{ name: 'pooba', value: 'first' }, { name: 'pooga', value: 'second' }]
* autocomplete.respond(data)
* }
* }
* }
* ],
* execute: (ctx, args) => {}
* })
* @end
*/
Plugin Submission Details
[Enter data here] this is optional
Additional Notes
[Include any additional information or notes you'd like to provide regarding your plugin submission.]