File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed
Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module.exports = {
5151 isGuildOnly : true ,
5252 execute : async interaction => {
5353 if ( ! interaction . member . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ) return interaction . reply ( await interaction . translate ( 'commands.shared.errors.missing_permissions' ) ) ;
54- if ( ! interaction . guild . members . me . permissions . has ( Discord . PermissionFlagsBits . ManageGuildExpressions ) && ! interaction . guild . members . me . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ) return interaction . reply ( await interaction . translate ( 'commands.emoji.errors.missing_bot_permissions' ) ) ;
54+ if ( ! interaction . guild . members . me . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) && ! interaction . guild . members . me . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ) return interaction . reply ( await interaction . translate ( 'commands.emoji.errors.missing_bot_permissions' ) ) ;
5555
5656 await interaction . deferReply ( ) ;
5757
@@ -167,7 +167,7 @@ module.exports = {
167167 }
168168 } ,
169169 autocomplete : async interaction => {
170- if ( ! interaction . member . permissions . has ( Discord . PermissionFlagsBits . ManageGuildExpressions ) ) return ;
170+ if ( ! interaction . member . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ) return ;
171171
172172 const group = interaction . options . getSubcommandGroup ( false ) ;
173173
Original file line number Diff line number Diff line change 2929 },
3030 "emoji" : {
3131 "errors" : {
32- "missing_bot_permissions" : " I don't have permission to upload emojis. Please make sure I have the \" Manage Guild Expressions \" and \" Create Guild Expressions\" permissions ." ,
32+ "missing_bot_permissions" : " I don't have permission to upload emojis. Please make sure I have the \" Create Guild Expressions\" permission ." ,
3333 "pack_not_found" : " Pack not found." ,
3434 "currently_uploading" : {
3535 "message" : " I'm currently uploading the pack **{packName}**. Please wait until it's finished." ,
Original file line number Diff line number Diff line change 2929 },
3030 "emoji" : {
3131 "errors" : {
32- "missing_bot_permissions" : " Emoji yüklemek için yetkim yok. Lütfen \" İfadeleri Yönet \" ve \" İfadeler Oluştur\" izinlerine sahip olduğumdan emin olun." ,
32+ "missing_bot_permissions" : " Emoji yüklemek için yetkim yok. Lütfen \" İfadeler Oluştur\" iznine sahip olduğumdan emin olun." ,
3333 "pack_not_found" : " Emoji paketi bulunamadı." ,
3434 "currently_uploading" : {
3535 "message" : " Şu anda **{packName}** paketini yüklüyorum. Lütfen bitene kadar bekleyin." ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
1616 const emojiUploadableGuilds = guilds . filter ( guild => {
1717 const permissions = new Discord . PermissionsBitField ( guild . permissions_new ) ;
1818
19- return guild . owner === true || permissions . has ( Discord . PermissionFlagsBits . ManageGuildExpressions ) ;
19+ return guild . owner === true || permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ;
2020 } ) ;
2121
2222 const botGuilds = client . guilds . cache . map ( guild => guild . id ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
1616 const soundUploadableGuilds = guilds . filter ( guild => {
1717 const permissions = new Discord . PermissionsBitField ( guild . permissions_new ) ;
1818
19- return guild . owner === true || permissions . has ( Discord . PermissionFlagsBits . ManageGuildExpressions ) ;
19+ return guild . owner === true || permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ;
2020 } ) ;
2121
2222 const botGuilds = client . guilds . cache . map ( guild => guild . id ) ;
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ module.exports = {
2828 const member = guild . members . cache . get ( request . user . id ) || await guild . members . fetch ( request . user . id ) . catch ( ( ) => null ) ;
2929 if ( ! member ) return response . sendError ( 'You are not a member of this guild.' , 403 ) ;
3030
31- const hasPermission = member . permissions . has ( Discord . PermissionFlagsBits . ManageGuildExpressions ) ;
32- if ( ! hasPermission ) return response . sendError ( 'You do not have permission to manage emojis in this guild.' , 403 ) ;
31+ const hasPermission = member . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ;
32+ if ( ! hasPermission ) return response . sendError ( 'You do not have permission to create emojis in this guild.' , 403 ) ;
3333
3434 const emoji = await Emoji . findOne ( { id } ) ;
3535 if ( ! emoji ) return response . sendError ( 'Emoji not found.' , 404 ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ module.exports = {
3232 const member = guild . members . cache . get ( request . user . id ) || await guild . members . fetch ( request . user . id ) . catch ( ( ) => null ) ;
3333 if ( ! member ) return response . sendError ( 'You are not a member of this guild.' , 403 ) ;
3434
35- const hasPermission = member . permissions . has ( Discord . PermissionFlagsBits . ManageGuildExpressions ) ;
35+ const hasPermission = member . permissions . has ( Discord . PermissionFlagsBits . CreateGuildExpressions ) ;
3636 if ( ! hasPermission ) return response . sendError ( 'You do not have the required permissions to upload sounds to this guild.' , 403 ) ;
3737
3838 try {
You can’t perform that action at this time.
0 commit comments