Skip to content

Lint fixes#2663

Merged
mkmccarty merged 1 commit into
mainfrom
mm-branch-10
May 17, 2026
Merged

Lint fixes#2663
mkmccarty merged 1 commit into
mainfrom
mm-branch-10

Conversation

@mkmccarty
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 17, 2026 01:28
@mkmccarty mkmccarty merged commit 39a07e3 into main May 17, 2026
13 checks passed
@mkmccarty mkmccarty deleted the mm-branch-10 branch May 17, 2026 01:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Small "lint fixes" PR that removes an extraneous blank line in the leaderboard module and drops an unused config import from the leaderboard slash command file. To make the import unused, the admin authorization check in handleRun was simplified to no longer accept config.AdminUserID as a permitted caller.

Changes:

  • Remove a stray blank line after GetGuildLBConfigs in leaderboard.go.
  • Drop the config package import from leaderboard_slashcmd.go.
  • Tighten the handleRun permission check to require Discord Administrator only, removing the config.AdminUserID bypass.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/leaderboard/leaderboard.go Cosmetic: removed an extra blank line.
src/leaderboard/leaderboard_slashcmd.go Removed config import and the config.AdminUserID bypass in the admin check for handleRun.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


perms, err := s.UserChannelPermissions(userID, i.ChannelID)
if err != nil || (perms&discordgo.PermissionAdministrator == 0 && userID != config.AdminUserID) {
if err != nil || (perms&discordgo.PermissionAdministrator == 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants