initial pass at wiring up login to discordgo

This commit is contained in:
Skip R
2025-11-24 10:28:43 -08:00
parent e0e18d7822
commit 586cb2bfe6
7 changed files with 259 additions and 26 deletions

View File

@@ -24,8 +24,9 @@ import (
)
func (d *DiscordClient) IsThisUser(ctx context.Context, userID networkid.UserID) bool {
//TODO implement me
panic("implement me")
// We define `UserID`s and `UserLoginID`s to be interchangeable, i.e. they map
// directly to Discord user IDs ("snowflakes"), so we can perform a direct comparison.
return userID == networkid.UserID(d.UserLogin.ID)
}
func (d *DiscordClient) GetUserInfo(ctx context.Context, ghost *bridgev2.Ghost) (*bridgev2.UserInfo, error) {