シンプル - Discord Bot with role selection, moderation, karma ranking, a starboard, code execution, raid alerting, backups, a web interface, twitch notifications and more!
For some reason, sometimes, the Auhtor field of the retrieved message from the cache is nil, which results to a nill pointer access in the starboard listener.
This issue is related to zekrotja/dgrs#5.
Steps to reproduce
Enable starboards
send messages
Add stars to the message
Hope you get the weird edge case where that exact behavior occurs
Attachments
goroutine 1407 [running]:
github.com/zekroTJA/shinpuru/internal/listeners.(*ListenerStarboard).ListenerReactionAdd(0xc0003d82d0, 0x0?, 0xc00302aa80)
/build/internal/listeners/starboard.go:125 +0xcb2
github.com/bwmarrin/discordgo.messageReactionAddEventHandler.Handle(0x0?, 0x0?, {0xe7ac00?, 0xc00302aa80?})
/go/pkg/mod/github.com/bwmarrin/discordgo@v0.23.3-0.20220216202327-6015eed9333e/eventhandlers.go:578 +0x38
created by github.com/bwmarrin/discordgo.(*Session).handle
/go/pkg/mod/github.com/bwmarrin/discordgo@v0.23.3-0.20220216202327-6015eed9333e/event.go:171 +0x16a
Type
Crash
Instance
Main Stable (shinpuru#4878 / shnp.de)
Description
For some reason, sometimes, the
Auhtor
field of the retrieved message from the cache isnil
, which results to a nill pointer access in the starboard listener.This issue is related to zekrotja/dgrs#5.
Steps to reproduce
Attachments