catto.js 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Application.js +10 -3
  2. package/package.json +1 -1
package/Application.js CHANGED
@@ -144,7 +144,7 @@ module.exports = class {
144
144
  null,
145
145
  null,
146
146
  null,
147
- null,
147
+ "APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE",
148
148
  null,
149
149
  null,
150
150
  null,
@@ -201,10 +201,17 @@ module.exports = class {
201
201
  return this.badges.has("EMBEDDED");
202
202
  }
203
203
  /**
204
- * Gets a boolean indicating if the application supports the slash command.
205
- * @returns {boolean} A boolean indicating if the application supports the slash command.
204
+ * Gets a boolean indicating if the application supports the slash commands.
205
+ * @returns {boolean} A boolean indicating if the application supports the slash commands.
206
206
  */
207
207
  get supportsSlash() {
208
208
  return this.badges.has("APPLICATION_COMMAND_BADGE");
209
209
  }
210
+ /**
211
+ * Gets a boolean indicating if the application uses automod.
212
+ * @returns {boolean} A boolean indicating if the application uses automod.
213
+ */
214
+ get supportsAutomod() {
215
+ return this.badges.has("APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE");
216
+ }
210
217
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {