mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
18 lines
486 B
C#
18 lines
486 B
C#
#nullable disable
|
|
using System.Collections;
|
|
|
|
namespace NadekoBot.Services;
|
|
|
|
public class StartingGuildsService : IEnumerable<ulong>, INService
|
|
{
|
|
private readonly IReadOnlyList<ulong> _guilds;
|
|
|
|
public StartingGuildsService(DiscordSocketClient client)
|
|
=> _guilds = client.Guilds.Select(x => x.Id).ToList();
|
|
|
|
public IEnumerator<ulong> GetEnumerator()
|
|
=> _guilds.GetEnumerator();
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
=> _guilds.GetEnumerator();
|
|
} |