File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ const Messages = {
115115 [ DjsErrorCodes . EmojiType ] : 'Emoji must be a string or GuildEmoji/ReactionEmoji' ,
116116 [ DjsErrorCodes . EmojiManaged ] : 'Emoji is managed and has no Author.' ,
117117 [ 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.` ,
119120 [ DjsErrorCodes . MissingManageEmojisAndStickersPermission ] : guild =>
120121 `Client must have Manage Emojis and Stickers permission in guild ${ guild } to see emoji authors.` ,
121122
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class GuildEmojiManager extends BaseGuildEmojiManager {
161161
162162 const { me } = this . guild . members ;
163163 if ( ! me ) throw new DiscordjsError ( ErrorCodes . GuildUncachedMe ) ;
164- if ( ! me . permissions . has ( PermissionFlagsBits . ManageGuildExpressions ) ) {
164+ if ( ! me . permissions . any ( PermissionFlagsBits . CreateGuildExpressions | PermissionFlagsBits . ManageGuildExpressions ) ) {
165165 throw new DiscordjsError ( ErrorCodes . MissingManageGuildExpressionsPermission , this . guild ) ;
166166 }
167167
You can’t perform that action at this time.
0 commit comments