feat: async cache
this breaks logging bot permissions to Sentry. we haven't had a need to check those recently (permissions issues were because of broken cache), so this is fine for now this should be re-added in the future though
This commit is contained in:
@@ -18,13 +18,13 @@ namespace Myriad.Cache
|
||||
public ValueTask RemoveUser(ulong userId);
|
||||
public ValueTask RemoveRole(ulong guildId, ulong roleId);
|
||||
|
||||
public bool TryGetGuild(ulong guildId, out Guild guild);
|
||||
public bool TryGetChannel(ulong channelId, out Channel channel);
|
||||
public bool TryGetDmChannel(ulong userId, out Channel channel);
|
||||
public bool TryGetUser(ulong userId, out User user);
|
||||
public bool TryGetRole(ulong roleId, out Role role);
|
||||
public Task<bool> TryGetGuild(ulong guildId, out Guild guild);
|
||||
public Task<bool> TryGetChannel(ulong channelId, out Channel channel);
|
||||
public Task<bool> TryGetDmChannel(ulong userId, out Channel channel);
|
||||
public Task<bool> TryGetUser(ulong userId, out User user);
|
||||
public Task<bool> TryGetRole(ulong roleId, out Role role);
|
||||
|
||||
public IAsyncEnumerable<Guild> GetAllGuilds();
|
||||
public IEnumerable<Channel> GetGuildChannels(ulong guildId);
|
||||
public Task<IEnumerable<Channel>> GetGuildChannels(ulong guildId);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user