Issue with GuildRoleUpdated - (RoleBefore)
Created by: Kiritsu
Summary
When you edit a role, the event GuildRoleUpdated
will fire with its GuildRoleUpdatedEventArgs
object which contains RoleBefore
and RoleAfter
.
It looks like RoleBefore
sometimes contains wrong informations. Admitting my role has Mentionable
set to false
, if I edit the role, RoleBefore.Mentionable
will be true
and RoleAfter.Mentionable
will be false
.
Check the tree screenshots: https://prnt.sc/jiomcc https://prnt.sc/jiomhn https://prnt.sc/jiommx
- Showing the role (not edited)
- Showing changes (name property, from
Bot
toTest2
) - Showing my bot telling me
Mentionable
property went fromtrue
tofalse
Details
- .NET Core 2.0
- Windows 10
- DSharpPlus version: 4.0.0-beta-00450
- Visual Studio 2017
Steps to reproduce
- Subscribe to the GuildRoleUpdated event
- Modify a role's name
- Take a look at
GuildRoleUpdatedEventArgs.RoleBefore
andGuildRoleUpdatedEventArgs.RoleAfter
and check theMentionable
boolean. You didn't made any change of this value but it's not the same in the two objects.