aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils/AllowedMentions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/AllowedMentions.ts')
-rw-r--r--src/lib/utils/AllowedMentions.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/utils/AllowedMentions.ts b/src/lib/utils/AllowedMentions.ts
index c0c76ee..7a377be 100644
--- a/src/lib/utils/AllowedMentions.ts
+++ b/src/lib/utils/AllowedMentions.ts
@@ -4,6 +4,13 @@ export class AllowedMentions {
public everyone: boolean;
public users: boolean;
public roles: boolean;
+
+ public constructor(users = true, roles = false, everyone = false) {
+ this.everyone = everyone;
+ this.roles = roles;
+ this.users = users;
+ }
+
public static none(): MessageMentionOptions {
return { parse: [] };
}
@@ -32,12 +39,6 @@ export class AllowedMentions {
};
}
- public constructor(users = true, roles = false, everyone = false) {
- this.everyone = everyone;
- this.roles = roles;
- this.users = users;
- }
-
public toObject(): MessageMentionOptions {
return {
parse: [