mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
dev: added botonguild api endpoint
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user