When you attempt to delete, edit, or react to a message in Discord, you may encounter Error 50068 with the message “Invalid Message Type for Operation Performed.” This error occurs because the action you are trying to perform is not supported for that specific type of message. Discord supports many message types, including system messages, channel follow-up messages, and user-created text messages, and each type has its own set of allowed operations. This article explains the technical cause of Error 50068, provides step-by-step instructions to fix it, and covers related failure patterns you might encounter.
Key Takeaways: Fixing Discord Error 50068
- Message Type Restriction: Discord restricts certain operations like deleting or editing on system messages and embedded system notifications.
- Check the Message Source: Verify whether the message was sent by a bot, webhook, or system event before trying to modify it.
- Use Server Settings to Clean Up: Use the “Prune” feature in Server Settings to remove unwanted system messages instead of manually deleting them.
Why Discord Error 50068 Occurs: Message Type Restrictions
Discord classifies every message in a channel into one of several types. The most common types are:
- DEFAULT (0): Standard user-created text messages. You can edit, delete, and react to these freely.
- RECIPIENT_ADD (1), RECIPIENT_REMOVE (2): System messages that appear when someone joins or leaves a group DM. These cannot be deleted or edited by users.
- CALL (3): A system message indicating a voice call was started in a DM channel.
- CHANNEL_NAME_CHANGE (4): A system message when a channel name is changed.
- CHANNEL_ICON_CHANGE (5): A system message when a channel icon changes.
- CHANNEL_PINNED_MESSAGE (6): A system message that appears when a message is pinned.
- GUILD_MEMBER_JOIN (7): A system message when a member joins a server.
- USER_PREMIUM_GUILD_SUBSCRIPTION (8): A system message when a user boosts a server.
- USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 (9): A system message when a server reaches Tier 1 boost level.
- CHANNEL_FOLLOW_ADD (12): A system message when a channel is followed to another server.
- GUILD_DISCOVERY_DISQUALIFIED (14): A system message when a server is removed from Server Discovery.
Error 50068 occurs when your client sends a request to Discord’s API to perform an operation on a message whose type does not allow that operation. For example, attempting to delete a system message like a server boost notification (type 8) will trigger this error because system messages are read-only. The Discord API explicitly rejects these requests to maintain message integrity and prevent accidental deletion of important system logs.
Why System Messages Are Protected
System messages serve as a chronological record of server events. If users could delete or edit messages like “User joined the server” or “User boosted the server,” the audit trail would become unreliable. Discord protects these messages at the API level, so even if a client-side mod or script attempts to delete them, the server returns Error 50068.
Steps to Fix Error 50068 When Deleting or Editing Messages
The only reliable fix for Error 50068 is to avoid performing the unsupported operation on that message type. Follow these steps to identify the message type and take the correct action.
- Identify the Message Type
Look at the message content. System messages are clearly labeled with a gray background and a small icon such as a star for boosts, a person icon for member joins, or a pin icon for pinned messages. User-created messages have a white or dark background with the user’s avatar and name. - Check the Message’s Context Menu
Right-click or long-press the message. If you see options like “Edit Message” or “Delete Message” grayed out, the message type is restricted. User-created messages will have these options active. - Do Not Attempt to Delete System Messages
If the message is a system notification, do not try to delete it. Instead, use the channel’s message filtering features to hide it from view. You cannot permanently remove system messages from a channel. - Use Server Settings to Remove Unwanted System Messages
For server boost or member join messages, go to Server Settings > Overview > System Messages Channel. Set this to a dedicated channel or disable it entirely. This prevents new system messages from appearing in your main channels. Existing system messages remain, but no new ones will be created. - Clear System Messages with Prune (Server Owner Only)
If you are the server owner, go to Server Settings > Moderation > Prune. This tool removes members who have been inactive for a set number of days, but it does not delete system messages. For actual deletion of system messages, you must use a bot with the “Manage Messages” permission. Bots can delete system messages via the API, but only if the bot’s developer has implemented that capability. - Delete User-Created Messages Normally
If the message is a standard user message (type DEFAULT), right-click it and select “Delete Message.” You must have the “Manage Messages” permission in that channel. If you still see Error 50068, the message may have been converted to a system type by Discord (rare but possible when a message is pinned and then the pin is removed).
If Discord Still Shows Error 50068 After the Main Fix
If you continue to see Error 50068 even when trying to delete a message that appears to be a user message, check the following scenarios.
Message Was Sent by a Bot or Webhook
Bots and webhooks can send messages with custom types that the Discord client may not fully recognize. These messages may appear as user messages but have a type that restricts deletion. To delete a bot message, you must have the “Manage Messages” permission. Right-click the message and select “Delete Message.” If the option is grayed out, the bot’s message type is locked. Contact the bot developer for assistance.
Message Is Part of a Thread
Threads have their own system messages, such as “Thread created” or “Thread archived.” These system messages are also protected. You cannot delete the “Thread created” system message. To remove it, archive the thread instead. Go to the thread, click the thread name, and select “Archive Thread.” This hides the thread from the channel list.
Message Is a Crosspost from Another Channel
When a message is crossposted from one channel to another using the “Publish” feature, the crossposted message is a system message type. You cannot delete the crossposted version. Only the original message in the source channel can be deleted. If you delete the original, the crossposted copy remains as a system placeholder.
Client or API Cache Is Outdated
In rare cases, Discord’s client cache may show a message as deletable even when the API rejects it. Log out of Discord completely, restart the app, and log back in. This clears the local cache. If the error persists, the message type is genuinely restricted.
Discord Message Types: User vs System vs Bot
| Item | User Message (DEFAULT) | System Message | Bot Message |
|---|---|---|---|
| Can delete | Yes, with Manage Messages permission | No, API rejects the request | Yes, if bot allows deletion |
| Can edit | Yes, by the author or with Manage Messages | No | Only by the bot itself via API |
| Can add reactions | Yes | No | Yes, if reactions are enabled |
| Appearance | User avatar and name, white/dark background | Gray background, small icon, no avatar | Bot avatar and name, same background as user messages |
Error 50068 is a clear indicator that the message you are trying to modify is not a standard user message. The best approach is to identify the message type by its appearance and context. Use Server Settings to manage system message channels instead of trying to delete individual system messages. If you need to remove a system message permanently, consider using a bot that has explicit permission to delete system messages, but be aware that this may violate Discord’s Terms of Service if used to tamper with server logs. Always verify that your account has the correct permissions before attempting to delete any message.