Skip to content

Commit

Permalink
Oops (Release 2.1.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Aug 16, 2024
1 parent 23df815 commit 61444fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "waitingway-web"
authors = ["Asriel Camora <[email protected]>"]
description = "Backend web server for Waitingway"
repository = "https://github.com/WorkingRobot/Waitingway"
version = "2.1.3"
version = "2.1.4"
edition = "2021"

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions web/src/discord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ impl DiscordClient {
access_token: String,
) -> Result<Message, serenity::Error> {
log::info!("Onboarding user {}", user_id);

let already_in_guild = match self.config().guild_id.member(self.http(), user_id).await {
Ok(_) => true,
Err(serenity::Error::Http(HttpError::UnsuccessfulRequest(ErrorResponse {
error: DiscordJsonError { code: 10007, .. }, // Unknown Member
Expand Down

0 comments on commit 61444fc

Please sign in to comment.