discord.js 14.25.0 → 14.25.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "discord.js",
4
- "version": "14.25.0",
4
+ "version": "14.25.1",
5
5
  "description": "A powerful library for interacting with the Discord API",
6
6
  "main": "./src/index.js",
7
7
  "types": "./typings/index.d.ts",
@@ -64,8 +64,8 @@
64
64
  "undici": "6.21.3",
65
65
  "@discordjs/builders": "^1.13.0",
66
66
  "@discordjs/formatters": "^0.6.2",
67
- "@discordjs/rest": "^2.6.0",
68
- "@discordjs/util": "^1.2.0"
67
+ "@discordjs/util": "^1.2.0",
68
+ "@discordjs/rest": "^2.6.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@favware/cliff-jumper": "^4.1.0",
@@ -115,7 +115,8 @@ const Messages = {
115
115
  [DjsErrorCodes.EmojiType]: 'Emoji must be a string or GuildEmoji/ReactionEmoji',
116
116
  [DjsErrorCodes.EmojiManaged]: 'Emoji is managed and has no Author.',
117
117
  [DjsErrorCodes.MissingManageGuildExpressionsPermission]: guild =>
118
- `Client must have Manage Guild Expressions permission in guild ${guild} to see emoji authors.`,
118
+ // eslint-disable-next-line max-len
119
+ `Client must have Create Guild Expressions or Manage Guild Expressions permission in guild ${guild} to see emoji authors.`,
119
120
  [DjsErrorCodes.MissingManageEmojisAndStickersPermission]: guild =>
120
121
  `Client must have Manage Emojis and Stickers permission in guild ${guild} to see emoji authors.`,
121
122
 
@@ -161,7 +161,7 @@ class GuildEmojiManager extends BaseGuildEmojiManager {
161
161
 
162
162
  const { me } = this.guild.members;
163
163
  if (!me) throw new DiscordjsError(ErrorCodes.GuildUncachedMe);
164
- if (!me.permissions.has(PermissionFlagsBits.ManageGuildExpressions)) {
164
+ if (!me.permissions.any(PermissionFlagsBits.CreateGuildExpressions | PermissionFlagsBits.ManageGuildExpressions)) {
165
165
  throw new DiscordjsError(ErrorCodes.MissingManageGuildExpressionsPermission, this.guild);
166
166
  }
167
167