Skip to content
Success

Changes

Summary

  1. Change behaviour of getAsMention for public Role (commit: 17c391d) (details)
Commit 17c391deffbab33df3c17ff241ac74e96570cfa6 by Michael Ritter
Change behaviour of getAsMention for public Role
Role#getAsMention() currently just used the standard Role mention
pattern, even for the public Role.
This leads to unexpected behaviour as the actual way of mentioning the
public Role is to type the literal String "@everyone".
Therefore, check if role is the public one and mention correctly.
(commit: 17c391d)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/impl/RoleImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/IMentionable.java (diff)