2019-04-24 20:41:10 +00:00
|
|
|
|
using Kerobot.Common;
|
|
|
|
|
using Kerobot.Services.GuildState;
|
2018-06-03 00:33:31 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Kerobot
|
|
|
|
|
{
|
|
|
|
|
partial class Kerobot
|
|
|
|
|
{
|
|
|
|
|
private GuildStateService _svcGuildState;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// See <see cref="ModuleBase.GetGuildState{T}(ulong)"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal T GetGuildState<T>(ulong guild, Type type)
|
|
|
|
|
=> _svcGuildState.RetrieveGuildStateObject<T>(guild, type);
|
2019-04-24 20:41:10 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// See <see cref="ModuleBase.GetModerators(ulong)"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal EntityList GetModerators(ulong guild) => _svcGuildState.RetrieveGuildModerators(guild);
|
2018-06-03 00:33:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|