mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 02:30:11 +00:00
refactor: move guildMember caching to IDiscordCache
This commit is contained in:
parent
99b81085ed
commit
24ac0725af
4 changed files with 32 additions and 16 deletions
|
|
@ -10,6 +10,7 @@ namespace Myriad.Cache
|
|||
public ValueTask SaveGuild(Guild guild);
|
||||
public ValueTask SaveChannel(Channel channel);
|
||||
public ValueTask SaveUser(User user);
|
||||
public ValueTask SaveSelfMember(ulong guildId, GuildMemberPartial member);
|
||||
public ValueTask SaveRole(ulong guildId, Role role);
|
||||
public ValueTask SaveDmChannelStub(ulong channelId);
|
||||
|
||||
|
|
@ -22,6 +23,7 @@ namespace Myriad.Cache
|
|||
public Task<Channel?> TryGetChannel(ulong channelId);
|
||||
public Task<Channel?> TryGetDmChannel(ulong userId);
|
||||
public Task<User?> TryGetUser(ulong userId);
|
||||
public Task<GuildMemberPartial?> TryGetSelfMember(ulong guildId);
|
||||
public Task<Role?> TryGetRole(ulong roleId);
|
||||
|
||||
public IAsyncEnumerable<Guild> GetAllGuilds();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue