mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix a few more compiler warnings
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
parent
dd2c669cd2
commit
dbde8c07ad
6 changed files with 18 additions and 12 deletions
|
|
@ -151,10 +151,11 @@ namespace Myriad.Cache
|
|||
public bool TryGetRole(ulong roleId, out Role role) =>
|
||||
_roles.TryGetValue(roleId, out role!);
|
||||
|
||||
public async IAsyncEnumerable<Guild> GetAllGuilds()
|
||||
public IAsyncEnumerable<Guild> GetAllGuilds()
|
||||
{
|
||||
foreach (var guild in _guilds.Values)
|
||||
yield return guild.Guild;
|
||||
return _guilds.Values
|
||||
.Select(g => g.Guild)
|
||||
.ToAsyncEnumerable();
|
||||
}
|
||||
|
||||
public IEnumerable<Channel> GetGuildChannels(ulong guildId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue