mirror of
https://github.com/yawaflua/Discord.Net.git
synced 2025-12-09 03:49:36 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
public interface IAvatarDecoration
|
||||
{
|
||||
public string AssetHash { get; set; }
|
||||
public ulong AssetArticular { get; set; }
|
||||
public string AssetArticular { get; set; }
|
||||
}
|
||||
@@ -4,7 +4,7 @@ namespace yawaflua.Discord.Net.Interfaces.Models;
|
||||
|
||||
public interface IGuild
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string? IconHash { get; set; }
|
||||
public string? BannerHash { get; set; }
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace yawaflua.Discord.Net.Interfaces.Models;
|
||||
|
||||
public interface IRole
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
[Obsolete("Deprecated integer representation of hexadecimal color code")]
|
||||
public int Color { get; set; }
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
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<IGuildMember?> GetGuildMemberAsync(string guildId, CancellationToken cancellationToken = default);
|
||||
Task<IGuildMember?> AddMemberToGuildAsync(string guildId, string userId, CancellationToken cancellationToken = default);
|
||||
Task<IUser?> GetCurrentUserAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
Task<IConnection?> GetConnectionAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
Reference in New Issue
Block a user