File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ 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+ `Client must have Create Guild Expressions or Manage Guild Expressions permission in guild ${ guild } to see emoji authors.` ,
119119 [ DjsErrorCodes . MissingManageEmojisAndStickersPermission ] : guild =>
120120 `Client must have Manage Emojis and Stickers permission in guild ${ guild } to see emoji authors.` ,
121121
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