Skip to content

Commit

Permalink
doc: change reserved keyword in codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
jackskelt committed Jul 20, 2024
1 parent f4d6807 commit 9ff2671
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ async fn main() {
app.edit_mod(&client, "MOD_ID", vec![TeamPerms::Start, TeamPerms::Stop]).await.unwrap();
// Edit mod permissions from mod
if let Some(mod) = app.get_team(&client).await.unwrap().first() {
mod.edit_perms(&client, vec![TeamPerms::Start, TeamPerms::Stop]).await.unwrap();
if let Some(app_mod) = app.get_team(&client).await.unwrap().first() {
app_mod.edit_perms(&client, vec![TeamPerms::Start, TeamPerms::Stop]).await.unwrap();
// Or add permissions to mod
mod.add_perms(&client, vec![TeamPerms::Start, TeamPerms::Stop]).await.unwrap();
app_mod.add_perms(&client, vec![TeamPerms::Start, TeamPerms::Stop]).await.unwrap();
};
}
```
Expand All @@ -362,8 +362,8 @@ async fn main() {
app.remove_mod(&client, "MOD_ID").await.unwrap();
// Remove from mod
if let Some(mod) = app.get_team(&client).await.unwrap().first() {
mod.remove(&client).await.unwrap();
if let Some(app_mod) = app.get_team(&client).await.unwrap().first() {
app_mod.remove(&client).await.unwrap();
};
}
```

0 comments on commit 9ff2671

Please sign in to comment.