Skip to content

Commit b634d8d

Browse files
committed
fix(role): correct guild id check
1 parent 2ca7226 commit b634d8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/command/role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub async fn toggle_update_role(ctx: CommandContext<'_>) -> CommandResult {
2020

2121
let member = ctx.author_member().await;
2222

23-
if member.is_none() || ctx.guild_id().map(|g| g.get()) == Some(*RETROREALM_SERVER_ID) {
23+
if member.is_none() || ctx.guild_id().map(|g| g.get()) != Some(*RETROREALM_SERVER_ID) {
2424
ctx.say("This command can only be run inside RetroRealm's Discord Server")
2525
.await?;
2626
return Ok(());

0 commit comments

Comments
 (0)