8000 Fix logical condition in ShardByGuildID method by Qreepex · Pull Request #470 · disgoorg/disgo · GitHub
[go: up one dir, main page]

Skip to content

Fix logical condition in ShardByGuildID method - #470

Merged
topi314 merged 1 commit into
disgoorg:masterfrom
Qreepex:patch-1
Sep 4, 2025
Merged

topi314 merged 1 commit into
disgoorg:masterfrom
Qreepex:patch-1

Conversation

@Qreepex
@Qreepex Qreepex commented Sep 4, 2025
Copy link
Copy Markdown
Contributor

Currently this leads to a panic because we divide by 0 in ShardIDByGuild, so we should always check if shardCount is not 0

Currently this leads to a panic because we divide by 0 in ShardIDByGuild, so we should always check if shardCount is not 0
@topi314
topi314 commented Sep 4, 2025
Copy link
Copy Markdown
Member

thanks!

@topi314
topi314 merged commit 9c6cde3 into disgoorg:master Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants

0