Compare commits
3 Commits
f47bcd3f0c
...
e35082bbea
Author | SHA1 | Date | |
---|---|---|---|
e35082bbea | |||
f1e08caee0 | |||
d0dc921fd4 |
@ -65,13 +65,15 @@ async def whoami(evt: CommandEvent) -> None:
|
||||
own_info = None
|
||||
except CommandException as e:
|
||||
await evt.reply(f"Error from KakaoTalk: {e}")
|
||||
return
|
||||
if own_info:
|
||||
uuid = f"`{own_info.more.uuid}` ({'' if own_info.more.uuidSearchable else 'not '}searchable)" if own_info.more.uuid else "_none_"
|
||||
await evt.reply(
|
||||
f"You're logged in as `{own_info.more.uuid}` (nickname: {own_info.more.nickName}, user ID: {evt.sender.ktid})."
|
||||
f"You're logged in as **{own_info.more.nickName}** (KakaoTalk ID: {uuid}, internal ID: `{evt.sender.ktid}`)"
|
||||
)
|
||||
else:
|
||||
await evt.reply(
|
||||
f"You're logged in, but the bridge is unable to retrieve your profile information (user ID: {evt.sender.ktid})."
|
||||
f"You're logged in, but the bridge is unable to retrieve your profile information (internal ID: {evt.sender.ktid})"
|
||||
)
|
||||
|
||||
|
||||
|
@ -598,7 +598,7 @@ export default class PeerClient {
|
||||
const oAuthClient = await OAuthApiClient.create()
|
||||
const res = await oAuthClient.renew(req.oauth_credential)
|
||||
if (res.success && userClient) {
|
||||
await userClient.setCredential(res.result)
|
||||
await userClient.setCredential(res.result.credential)
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user