feat(users): add check for discord account connection
This commit is contained in:
parent
9c989b0d8e
commit
28e2de65ca
@ -149,6 +149,15 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user linked their Discord account
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasDiscordConnection(): bool {
|
||||
return !is_null($this->discord_token) && !is_null($this->discord_refresh_token);
|
||||
}
|
||||
|
||||
|
||||
public function routeNotificationForSlack($notification)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user