diff --git a/locales/Bulgarian.json b/locales/Bulgarian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Bulgarian.json +++ b/locales/Bulgarian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Croatian.json b/locales/Croatian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Croatian.json +++ b/locales/Croatian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Czech.json b/locales/Czech.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Czech.json +++ b/locales/Czech.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Danish.json b/locales/Danish.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Danish.json +++ b/locales/Danish.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Dutch.json b/locales/Dutch.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Dutch.json +++ b/locales/Dutch.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/EnglishGB.json b/locales/EnglishGB.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/EnglishGB.json +++ b/locales/EnglishGB.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/EnglishUS.json b/locales/EnglishUS.json index 7f11d7ac3..c6c5cbb8a 100644 --- a/locales/EnglishUS.json +++ b/locales/EnglishUS.json @@ -552,6 +552,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -569,6 +570,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Finnish.json b/locales/Finnish.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Finnish.json +++ b/locales/Finnish.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Greek.json b/locales/Greek.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Greek.json +++ b/locales/Greek.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Hungarian.json b/locales/Hungarian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Hungarian.json +++ b/locales/Hungarian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Italian.json b/locales/Italian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Italian.json +++ b/locales/Italian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Lithuanian.json b/locales/Lithuanian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Lithuanian.json +++ b/locales/Lithuanian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/PortugueseBR.json b/locales/PortugueseBR.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/PortugueseBR.json +++ b/locales/PortugueseBR.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Romanian.json b/locales/Romanian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Romanian.json +++ b/locales/Romanian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Swedish.json b/locales/Swedish.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Swedish.json +++ b/locales/Swedish.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Thai.json b/locales/Thai.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Thai.json +++ b/locales/Thai.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Turkish.json b/locales/Turkish.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Turkish.json +++ b/locales/Turkish.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/locales/Ukrainian.json b/locales/Ukrainian.json index 75c53c9ea..c7e529d9c 100644 --- a/locales/Ukrainian.json +++ b/locales/Ukrainian.json @@ -551,6 +551,7 @@ "setup_channel": "You can't use this command in the setup channel.", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", @@ -568,6 +569,7 @@ "prefix_mention": "Hey, my prefix for this server is `{prefix}`. Want more info? then do `{prefix}help`\nStay Safe, Stay Awesome!", "no_send_message": "I don't have **`SendMessage`** permission in `{guild}`\nchannel: {channel}.", "no_embed_links": "I don't have **`EmbedLinks`** permission.", + "no_read_message_history": "I don't have **`ReadMessageHistory`** permission.", "no_permission": "I don't have enough permissions to execute this command.", "no_user_permission": "You don't have enough permissions to use this command.", "no_voice_channel": "You must be connected to a voice channel to use this `{command}` command.", diff --git a/src/events/client/InteractionCreate.ts b/src/events/client/InteractionCreate.ts index 8b15e0f78..cc645e8a8 100644 --- a/src/events/client/InteractionCreate.ts +++ b/src/events/client/InteractionCreate.ts @@ -68,6 +68,13 @@ export default class InteractionCreate extends Event { content: T(locale, "event.interaction.no_embed_links"), }); } + + if (!clientMember.permissions.has(PermissionFlagsBits.ReadMessageHistory)) { + return await interaction.reply({ + content: T(locale, "event.interaction.no_read_message_history"), + }); + } + const logs = this.client.channels.cache.get(this.client.config.commandLogs); if (command.permissions) { diff --git a/src/events/client/MessageCreate.ts b/src/events/client/MessageCreate.ts index 3306e87ec..1a5b511e6 100644 --- a/src/events/client/MessageCreate.ts +++ b/src/events/client/MessageCreate.ts @@ -78,6 +78,13 @@ export default class MessageCreate extends Event { return; } + if (!clientMember.permissions.has(PermissionFlagsBits.ReadMessageHistory)) { + await message.reply({ + content: T(locale, "event.interaction.no_read_message_history"), + }); + return; + } + if (command.permissions) { if (command.permissions.client && !clientMember.permissions.has(command.permissions.client)) { await message.reply({