Skip to content

Commit

Permalink
Merge pull request #9 from Dominik48N/main
Browse files Browse the repository at this point in the history
Hide user discriminator for user's without discriminator
  • Loading branch information
T1Il authored Aug 25, 2023
2 parents 1de27c6 + 4083b6c commit 27d3598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/request.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function generateField($name, $value, $inline): array

function getUserInfo($user): string
{
return $user->getUsername() . '#' . $user->getDiscriminator() . ' => ' . $user->getDiscordID();
return "{$user->getUsername()}" . ($user->getDiscriminator() == "0" ? "" : "#{$user->getDiscriminator()}") . " => {$user->getDiscordID()}";
}

function getUserAndDisc($user): string
Expand Down

0 comments on commit 27d3598

Please sign in to comment.