using Myriad.Types; namespace Myriad.Cache; public interface IDiscordCache { public ValueTask SaveOwnUser(ulong userId); 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); public ValueTask RemoveGuild(ulong guildId); public ValueTask RemoveChannel(ulong channelId); public ValueTask RemoveUser(ulong userId); public ValueTask RemoveRole(ulong guildId, ulong roleId); public Task GetOwnUser(); public Task TryGetGuild(ulong guildId); public Task TryGetChannel(ulong channelId); public Task TryGetDmChannel(ulong userId); public Task TryGetUser(ulong userId); public Task TryGetSelfMember(ulong guildId); public Task TryGetRole(ulong roleId); public IAsyncEnumerable GetAllGuilds(); public Task> GetGuildChannels(ulong guildId); }