-
-
Notifications
You must be signed in to change notification settings - Fork 108
Description
Maybe i'm doing something wrong but when updating botadmins it cannot find my account unless I use the GUID*? for my discord handle
Expected Behavior
Adding my discord handle to admins .psd1 should allow me to be an admin with the bot
Current Behavior
Adding my discord handle to admins .psd1 with or with # doesn't give me access BUT if I use my GUID that I read in the output it does work
Possible Solution
Mechanism to resolve discord name to GUID?
Steps to Reproduce (for bugs)
Doesn't work:
$pbc.BotAdmins = @('botaccount','mydiscordhandle')
$pbc.BotAdmins = @('botaccount','mydiscordhandle#1234')
Works: GUID is from verbose output
$pbc.BotAdmins = @('botaccount','12213214342342')
WARNING: {"DataTime":"2021-03-09 17:41:26Z","Class":"DiscordBackend","Method":"UsernameToUserId","Severity":"Warning","LogLevel":"Debug","Message":"User [mydiscordhandle'] not found. Refreshing users","Data":null}
WARNING: {"DataTime":"2021-03-09 17:41:26Z","Class":"DiscordBackend","Method":"UsernameToUserId","Severity":"Warning","LogLevel":"Debug","Message":"Could not resolve user [mydiscordhandle']","Data":null}
WARNING: {"DataTime":"2021-03-09 17:41:26Z","Class":"Bot","Method":"_LoadAdmins","Severity":"Warning","LogLevel":"Info","Message":"Unable to resolve ID for admin [mydiscordhandle']","Data":null}
Context
Trying to test out bot but can't do anything as I can't run any commands
Your Environment
Windows 10 Pro
Powershell Version : 7.1.2