dev: added botonguild api endpoint

This commit is contained in:
Kwoth
2024-10-16 15:15:41 +00:00
parent fde5309ea4
commit 9dd2997b0f
2 changed files with 22 additions and 1 deletions

View File

@@ -39,6 +39,19 @@ public sealed class OtherSvc : GrpcOther.GrpcOtherBase, INService
_cache = cache;
}
[GrpcNoAuthRequired]
public override async Task<BotOnGuildReply> BotOnGuild(BotOnGuildRequest request, ServerCallContext context)
{
var guild = await _client.GetGuildAsync(request.GuildId);
var reply = new BotOnGuildReply
{
Success = guild is not null
};
return reply;
}
public override async Task<GetTextChannelsReply> GetTextChannels(
GetTextChannelsRequest request,
ServerCallContext context)