File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,14 @@ internal override async ValueTask DisposeAsync(bool disposing)
59
59
internal override async Task OnLoginAsync ( TokenType tokenType , string token )
60
60
{
61
61
var user = await ApiClient . GetMyUserAsync ( new RequestOptions { RetryMode = RetryMode . AlwaysRetry } ) . ConfigureAwait ( false ) ;
62
- await GetApplicationInfoAsync ( new RequestOptions { RetryMode = RetryMode . AlwaysRetry } ) . ConfigureAwait ( false ) ;
63
62
ApiClient . CurrentUserId = user . Id ;
64
- ApiClient . CurrentApplicationId = _applicationInfo . Id ;
65
63
base . CurrentUser = RestSelfUser . Create ( this , user ) ;
64
+
65
+ if ( tokenType == TokenType . Bot )
66
+ {
67
+ await GetApplicationInfoAsync ( new RequestOptions { RetryMode = RetryMode . AlwaysRetry } ) . ConfigureAwait ( false ) ;
68
+ ApiClient . CurrentApplicationId = _applicationInfo . Id ;
69
+ }
66
70
}
67
71
68
72
internal void CreateRestSelfUser ( API . User user )
You can’t perform that action at this time.
0 commit comments