We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23a2bd commit 5db6bbbCopy full SHA for 5db6bbb
src/main/kotlin/me/devoxin/flight/internal/parsers/RoleParser.kt
@@ -10,7 +10,7 @@ class RoleParser : Parser<Role> {
10
11
return when {
12
snowflake != null -> ctx.guild?.getRoleById(snowflake)
13
- else -> ctx.guild?.roleCache?.firstOrNull { it.name == param }
+ else -> if (param == "everyone") ctx.guild?.publicRole else ctx.guild?.roleCache?.firstOrNull { it.name == param }
14
}
15
16
0 commit comments