Skip to content

Commit 8971d23

Browse files
authored
Fix incorrect CommandPermissionType for @everyone. (#3339)
`@everyone` is a role, not a user.
1 parent 009255f commit 8971d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder/create_command_permission.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl CreateCommandPermission {
9393
pub fn everyone(guild_id: GuildId, allow: bool) -> Self {
9494
Self(CommandPermission {
9595
id: guild_id.get().into(),
96-
kind: CommandPermissionType::User,
96+
kind: CommandPermissionType::Role,
9797
permission: allow,
9898
})
9999
}

0 commit comments

Comments
 (0)