1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-29 18:49:53 +03:00

Move scheduled events to guild tick loop

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-06-11 22:54:41 +05:00
parent 59ca76ba6b
commit 3cd2b672a1
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
5 changed files with 270 additions and 235 deletions

View file

@ -91,11 +91,11 @@ public class GuildDataService : IHostedService {
return (await GetData(guildId, ct)).Configuration;
}
public async Task<MemberData> GetMemberData(Snowflake guildId, Snowflake userId, CancellationToken ct = default) {
/*public async Task<MemberData> GetMemberData(Snowflake guildId, Snowflake userId, CancellationToken ct = default) {
return (await GetData(guildId, ct)).GetMemberData(userId);
}
}*/
public List<Snowflake> GetGuildIds() {
return _datas.Keys.ToList();
public IEnumerable<Snowflake> GetGuildIds() {
return _datas.Keys;
}
}