diff --git a/app/User.php b/app/User.php index 52ce4a7..92b7ea4 100755 --- a/app/User.php +++ b/app/User.php @@ -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) {