AndBobsYourUncle / stable-diffusion-discord-bot

A Discord bot, written in Go, that interfaces with the Automatic 1111's API interface.
MIT License
128 stars 35 forks source link

Prevent crash due to missing (optional) user info in a DM #20

Open StuartRiffle opened 1 year ago

StuartRiffle commented 1 year ago

The code now uses DiscordInteraction.User.ID instead of DiscordInteraction.Member.User.ID when Member is nil.

The bot is no longer crashing interacting over DMs