Skip to content

Commit

Permalink
removed test files and updated button template jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 22, 2024
1 parent a7640dd commit a1bfe30
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 36 deletions.
7 changes: 7 additions & 0 deletions src/app/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export interface IButton {
create(...params: any[]): discord.ButtonBuilder
}

/**
* The parameters that the button will receive.
* @example
* ```ts
* export type BuyButtonParams = [article: string, quantity: number]
* ```
*/
export type ButtonParams = (string | number | boolean)[]

export interface ButtonOptions<Params extends ButtonParams> {
Expand Down
16 changes: 0 additions & 16 deletions src/buttons/test.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/commands/test.ts

This file was deleted.

3 changes: 2 additions & 1 deletion templates/button
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import * as app from "#app"

/**
* The parameters that the button will receive.
* Example: ```ts
* @example
* ```ts
* export type BuyButtonParams = [article: string, quantity: number]
* ```
*/
Expand Down

0 comments on commit a1bfe30

Please sign in to comment.