Skip to content

Commit

Permalink
Dont overflow on 32bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Mar 23, 2024
1 parent 4baa5e2 commit bc43367
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@ import (
"github.com/leighmacdonald/steamid/v4/steamid"
)

const (
perms = 275146361856
addFmt = "https://discord.com/oauth2/authorize?client_id=%s&scope=bot&permissions=%d"
)

func discordAddURL(clientID string) string {
return fmt.Sprintf(addFmt, clientID, perms)
return fmt.Sprintf("https://discord.com/oauth2/authorize?client_id=%s&scope=bot&permissions=275146361856", clientID)
}

// the "ready" event from Discord.
Expand Down

0 comments on commit bc43367

Please sign in to comment.