diff --git a/server/bot/auth.go b/server/bot/auth.go index 628fea45..eff748a7 100644 --- a/server/bot/auth.go +++ b/server/bot/auth.go @@ -13,12 +13,14 @@ func Auth(fn exrouter.HandlerFunc) exrouter.HandlerFunc { if err != nil { logrus.WithField("error", err).Warn() ctx.Reply("Could not fetch guild: ", err) + return } member, err := ctx.Member(guild.ID, ctx.Msg.Author.ID) if err != nil { ctx.Reply("Could not fetch member: ", err) + return } if GuildMemberPermissions(member, guild)&discordgo.PermissionManageServer != 0 {