diff options
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/AllowedMentions.ts | 33 | ||||
-rw-r--r-- | src/lib/utils/BushLogger.ts | 10 | ||||
-rw-r--r-- | src/lib/utils/CanvasProgressBar.ts | 5 |
3 files changed, 12 insertions, 36 deletions
diff --git a/src/lib/utils/AllowedMentions.ts b/src/lib/utils/AllowedMentions.ts index 400da76..d2eb030 100644 --- a/src/lib/utils/AllowedMentions.ts +++ b/src/lib/utils/AllowedMentions.ts @@ -5,37 +5,12 @@ import { type MessageMentionOptions, type MessageMentionTypes } from 'discord.js */ export class AllowedMentions { /** - * Whether @everyone and @here should be mentioned. - */ - public everyone: boolean; - - /** - * Whether users should be mentioned. - */ - public users: boolean; - - /** - * Whether roles should be mentioned. - */ - public roles: boolean; - - /** - * Whether the author of the Message being replied to should be mentioned. - */ - public repliedUser: boolean; - - /** - * @param users Whether users should be mentioned. + * @param everyone Whether everyone and here should be mentioned. * @param roles Whether roles should be mentioned. - * @param everyone Whether @everyone and @here should be mentioned. + * @param users Whether users should be mentioned. * @param repliedUser Whether the author of the Message being replied to should be mentioned. */ - public constructor(users = true, roles = false, everyone = false, repliedUser = true) { - this.everyone = everyone; - this.roles = roles; - this.users = users; - this.repliedUser = repliedUser; - } + public constructor(public everyone = false, public roles = false, public users = true, public repliedUser = true) {} /** * Don't mention anyone. @@ -62,7 +37,7 @@ export class AllowedMentions { } /** - * Mention @everyone and @here. + * Mention everyone and here. * @param repliedUser Whether the author of the Message being replied to should be mentioned. */ public static everyone(repliedUser = true): MessageMentionOptions { diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts index 1be58a4..3cfd860 100644 --- a/src/lib/utils/BushLogger.ts +++ b/src/lib/utils/BushLogger.ts @@ -132,12 +132,10 @@ function getTimeStamp(): string { * Custom logging utility for the bot. */ export class BushLogger { - public constructor( - /** - * The client. - */ - public client: Client - ) {} + /** + * @param client The client. + */ + public constructor(public client: Client) {} /** * Logs information. Highlight information by surrounding it in `<<>>`. diff --git a/src/lib/utils/CanvasProgressBar.ts b/src/lib/utils/CanvasProgressBar.ts index 21c4e22..fb4f778 100644 --- a/src/lib/utils/CanvasProgressBar.ts +++ b/src/lib/utils/CanvasProgressBar.ts @@ -1,6 +1,9 @@ import { CanvasRenderingContext2D } from 'canvas'; -// I just copy pasted this code from stackoverflow don't yell at me if there is issues for it +/** + * I just copy pasted this code from stackoverflow don't yell at me if there is issues for it + * @author @TymanWasTaken + */ export class CanvasProgressBar { private readonly x: number; private readonly y: number; |