func (es eventStore) Close(eventID, role string, user *discordgo.User, roles []string) error {
	es.m.Lock()
	defer es.m.Unlock()
	if !containsRole(role, roles) && es.eb[eventID].DiscordUser.ID != user.ID {
		return errors.New("permission denied")
	}
	delete(es.eb, eventID)
	return nil
}
// Close will remove a event listing from the map
Close will remove a event listing from the map
// Close will remove a event listing from the map
func (es eventStore) Close(eventID, role string, user *discordgo.User, roles []string) error {
	es.m.Lock()
	defer es.m.Unlock()
	if !containsRole(role, roles) && es.eb[eventID].DiscordUser.ID != user.ID {
		return errors.New("permission denied")
	}
	delete(es.eb, eventID)
	return nil
}
func ( es eventStore ) Close ( eventID , role string , user * discordgo . User , roles [ ] string ) error { es . m . Lock ( ) defer es . m . Unlock ( ) if ! containsRole ( role , roles ) && es . eb [ eventID ] . DiscordUser . ID != user . ID { return errors . New ( " " ) } delete ( es . eb , eventID ) return nil }
Close will remove a event listing from the map
Close will remove a event listing from the map