- Symptom
- DiscordAPIError[50013]: Missing Permissions on message.reply()channel.send works in the same channelFetching message history returns nothing even though the bot can view the channel
- Cause
- Replying to a message needs READ_MESSAGE_HISTORY in addition to SEND_MESSAGES, and reading past messages needs it too. Role setups that grant only View Channel and Send Messages miss it.
- Fix
- Grant Read Message History to the bot role or channel overwrite, or fall back to channel.send when the permission is missing.
- Apply
if (!message.channel.permissionsFor(client.user).has(PermissionFlagsBits.ReadMessageHistory)) await message.channel.send(text); else await message.reply(text);- Affected
- Discord API v10 create message with message_reference, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders