Conditions | 4 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package bot |
||
9 | func Greetings(discord *discordgo.Session, event *discordgo.GuildMemberAdd, guild *GuildData) { |
||
10 | if guild.Greeting != "" { |
||
11 | ch, cErr := discord.UserChannelCreate(event.User.ID) |
||
12 | if cErr != nil { |
||
13 | return |
||
14 | } |
||
15 | _, mErr := discord.ChannelMessageSend(ch.ID, guild.Greeting) |
||
16 | if mErr != nil { |
||
17 | return |
||
18 | } |
||
34 |