mirror of
https://github.com/yawaflua/Discord.Net.git
synced 2025-12-09 03:49:36 +02:00
Refactor OAuth handling and add GetAuthorizationUrl method
This commit is contained in:
@@ -6,4 +6,5 @@ public interface IDiscord
|
||||
{
|
||||
Task<IToken?> GetTokenAsync(string code);
|
||||
ISession? CreateSession();
|
||||
string GetAuthorizationUrl(string state);
|
||||
}
|
||||
@@ -9,8 +9,6 @@ public interface ISession
|
||||
|
||||
Task<IConnection?> GetConnectionAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
|
||||
string GetAuthorizationUrl(string state);
|
||||
IToken GetToken(CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
@@ -8,7 +8,7 @@ public interface IUser
|
||||
/// the user's id
|
||||
/// </summary>
|
||||
/// <seealso href="https://discord.com/developers/docs/resources/user#user-object">User-object</seealso>
|
||||
public ulong Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// the user's username, not unique across the platform
|
||||
|
||||
Reference in New Issue
Block a user