Skip to content

Commit

Permalink
::ign:: => docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spuckhafte committed Mar 28, 2023
1 parent c06a5bc commit 34541a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/helpers/funcs.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Message } from "discord.js";
export declare function err(desc: string, cmd?: string, warn?: boolean): string;
/**Listen to button interactions
* @param users - array of user-ids who can click on button
* @param msg - the msg sent containing the buttons
* @param props - (?) listen to a specific button of an id only, define the max valid interactions and/or define the time(ms) interval for which the clicks will be valid
*/
export declare function buttonSignal(users: string[], msg: Message | undefined, props?: {
customId?: string;
max?: number;
Expand Down
5 changes: 5 additions & 0 deletions dist/helpers/funcs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
export function err(desc, cmd, warn = false) {
return `[${warn ? 'warn' : 'err'}][cmd: ${cmd}] ${desc}`;
}
/**Listen to button interactions
* @param users - array of user-ids who can click on button
* @param msg - the msg sent containing the buttons
* @param props - (?) listen to a specific button of an id only, define the max valid interactions and/or define the time(ms) interval for which the clicks will be valid
*/
export function buttonSignal(users, msg, props) {
if (!msg)
return;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "breezer.js",
"version": "0.2.7",
"version": "0.3.0",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 34541a3

Please sign in to comment.