mirror of
https://github.com/yawaflua/Discord.Net.git
synced 2025-12-10 20:39:27 +02:00
Refactor and rename project to yawaflua.Discord.Net; add core entities and interfaces for Discord OAuth2 integration
This commit is contained in:
16
Interfaces/Models/ISession.cs
Normal file
16
Interfaces/Models/ISession.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace yawaflua.Discord.Net.Interfaces.Models;
|
||||
|
||||
public interface ISession
|
||||
{
|
||||
Task<IList<IGuild>?> GetGuildsAsync(CancellationToken cancellationToken = default);
|
||||
Task<IGuildMember?> GetGuildMemberAsync(ulong guildId, CancellationToken cancellationToken = default);
|
||||
Task<IGuildMember?> AddMemberToGuildAsync(ulong guildId, ulong userId, CancellationToken cancellationToken = default);
|
||||
Task<IUser?> GetCurrentUserAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
Task<IConnection?> GetConnectionAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
|
||||
string GetAuthorizationUrl(string state);
|
||||
IToken GetToken(CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user