diff --git a/cmd/welcomebot/main.go b/cmd/welcomebot/main.go index 6edce88..6dfc6a2 100644 --- a/cmd/welcomebot/main.go +++ b/cmd/welcomebot/main.go @@ -131,7 +131,7 @@ func joinListener(event *events.GuildMemberJoin) { } func leaveListener(event *events.GuildMemberLeave) { - user := event.Member.User + user := event.User if event.GuildID.String() != registerGuildID.String() { event.Client().Logger().Error("leave from an other guild")