aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils/AllowedMentions.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-19 16:57:35 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-19 16:57:35 -0400
commit76702f62bc0f0e91ad64eec677ce56813601c906 (patch)
tree776219582cf80e135ddd0d47ac7e59057696371e /src/lib/utils/AllowedMentions.ts
parent7dd24cbd5456891da58054bf343aa7f513f51205 (diff)
downloadtanzanite-76702f62bc0f0e91ad64eec677ce56813601c906.tar.gz
tanzanite-76702f62bc0f0e91ad64eec677ce56813601c906.tar.bz2
tanzanite-76702f62bc0f0e91ad64eec677ce56813601c906.zip
some documentation
Diffstat (limited to 'src/lib/utils/AllowedMentions.ts')
-rw-r--r--src/lib/utils/AllowedMentions.ts33
1 files changed, 4 insertions, 29 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 {