Socialify

Folder ..

Viewing guildMemberAdd.go
17 lines (13 loc) • 335.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
package handlers

import (
	"log"
	"github.com/bwmarrin/discordgo"
)

func MemberAdd(s *discordgo.Session, m *discordgo.GuildMemberAdd) {
	if m.GuildID == "1009009522767052860" { // Yuzaki Guild
		err := s.GuildMemberRoleAdd(m.GuildID, m.User.ID, "1307471288415162428") // Members Role
		if err != nil {
			log.Println(err)
		}
	}


}