Update LogEvent to use pointer to session

pull/1/head
DustyP 6 years ago
parent 7203f7277f
commit 0cd57dfa16

@ -76,7 +76,7 @@ func kickUser(ctx disgoman.Context, args []string) {
Color: 0xff8c00,
},
GuildID: ctx.Guild.ID,
Session: *ctx.Session,
Session: ctx.Session,
}
utils.LoggingChannel <- event
_, _ = ctx.Send(fmt.Sprintf("User %v#%v has been kicked.", member.User.Username, member.User.Discriminator))

@ -13,7 +13,7 @@ type LogEvent struct {
// Guild to log event in
GuildID string
// Discordgo Session. Needed for sending messages
Session discordgo.Session
Session *discordgo.Session
}
func LoggingHandler(lc chan *LogEvent) {

Loading…
Cancel
Save