[rpc/auth] add bot login/logout calls

This commit is contained in:
41666 2019-04-14 12:59:54 -05:00
parent e8f0579024
commit d4112c4252
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
3 changed files with 50 additions and 2 deletions

View file

@ -321,4 +321,13 @@ export default class DiscordService extends Service {
isMember (server: string, user: string): boolean {
return this.gm(server, user) != null
}
async isValidUser (user: string): Promise<boolean> {
const u = await this.fetcher.getUser(user)
if (u != null) {
return true
}
return false
}
}