Skip to content

v0.9.3

Choose a tag to compare

@isaacrowntree isaacrowntree released this 05 Feb 01:52
· 17 commits to main since this release

Bug Fixes

  • Auth storage: Bot and user identity are now stored separately in keyring and auth.yml. Previously, StoreUserInfo was called for both token types, so whichever was stored last would overwrite the other — causing self-DM detection and ResolveUserID() to return the wrong identity.
  • Self-DM detection: Now uses client.AuthUserID() (live auth.test call) instead of reading stored user info, making it reliable regardless of storage state.
  • ResolveUserID: Only uses the user token now (not bot token), since bot token returns the bot's identity, not the human's.

Internal

  • New keyring keys: bot_user_id, bot_user_name for bot identity
  • New auth.yml fields: bot_user_id, bot_user_name
  • StoreBotUserInfo() / GetBotUserInfo() functions
  • Login and app create flows now store bot vs user info to the correct keys
  • Tests for separate bot/user info storage