Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lua/presence/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,12 @@ function Presence:authorize(on_done)
return
end

self.log:info(string.format("Authorized with Discord for %s", response.data.user.username))
if response ~= nil then
self.log:info(string.format("Authorized with Discord for %s", response.data.user.username))
else
self.log:info("Authorized with Discord")
end

self.is_authorized = true

if on_done then on_done() end
Expand Down