Skip to content

Add support for Pinning and Unpinning messages#241

Merged
iProgramMC merged 6 commits intoDiscordMessenger:masterfrom
okzyrox:more-fixes
Feb 4, 2026
Merged

Add support for Pinning and Unpinning messages#241
iProgramMC merged 6 commits intoDiscordMessenger:masterfrom
okzyrox:more-fixes

Conversation

@okzyrox
Copy link
Contributor

@okzyrox okzyrox commented Jan 31, 2026

Adds support for pinning and unpinning messages from the message context menu

  • Also includes a fix to the "Delete" message context menu option that showed up for other recipents messages despite the user not being the author for them when in DMs/Group DMs
  • And an addendum fix for the previous PR I submitted with the permissions for Pinning/Editing messages when it is checked on click (curse Visual Studio 2022...)

Note:

  • Ideally we'd use the new PIN_MESSAGES permission for this, however it hasn't been fully seperated from MANAGE_MESSAGES yet (as DMs/Group DMs seem to still use it instead of PIN_MESSAGES....) and given that the check for showing the "Pin Message" menu item also uses MANAGE_MESSAGES as a condition, I decided to just use the old permission.

@iProgramMC iProgramMC merged commit ed0bd19 into DiscordMessenger:master Feb 4, 2026
1 check passed
@iProgramMC
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants