func closeEvent(eventID string, cmdInfo CommandInfo) {
	if !cmdInfo.Service.Event.EventExists(eventID) {
		// Error - event not found; can't close
		msg := cmdInfo.createMsgEmbed(
			"Error: Event Not Found", errThumbURL, "Event ID: "+eventID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied a valid Event ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}

	// store original host before removing event
	host := cmdInfo.Service.Event.GetHost(eventID)

	// attempt to close the event
	err := cmdInfo.Service.Event.Close(eventID, cmdInfo.AdminRole, cmdInfo.Msg.Author, cmdInfo.Msg.Member.Roles)
	if err != nil {
		// Error - Permission denied
		msg := cmdInfo.createMsgEmbed(
			"Error: You do not have permission to delete this event", errThumbURL, "Event ID: "+eventID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied the right Event ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}

	// remove all people tracking event
	cmdInfo.Service.User.RemoveAllQueue(eventID)
	// Remove user from tracking
	cmdInfo.Service.User.RemoveEvent(host, eventID)

	// print msg
	embed := cmdInfo.createMsgEmbed(
		"Successfully Removed Event "+eventID+" from listings!", checkThumbURL, "Thank you for hosting!",
		successColor, format(
			createFields("Host", host.Mention(), true),
			createFields("Suggestion", "If you are planning on opening another event, it is safe to do so now.", false),
			createFields("Suggestion", "If your event was deleted by a moderator, please make sure to follow event guidelines.", false),
		))
	cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.ListingID, embed)
}
// closeEvent will handle closing events by host
closeEvent will handle closing events by host
// closeEvent will handle closing events by host
func closeEvent(eventID string, cmdInfo CommandInfo) {
	if !cmdInfo.Service.Event.EventExists(eventID) {
		msg := cmdInfo.createMsgEmbed(
			"Error: Event Not Found", errThumbURL, "Event ID: "+eventID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied a valid Event ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}
	host := cmdInfo.Service.Event.GetHost(eventID)
	err := cmdInfo.Service.Event.Close(eventID, cmdInfo.AdminRole, cmdInfo.Msg.Author, cmdInfo.Msg.Member.Roles)
	if err != nil {
		msg := cmdInfo.createMsgEmbed(
			"Error: You do not have permission to delete this event", errThumbURL, "Event ID: "+eventID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied the right Event ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}
	cmdInfo.Service.User.RemoveAllQueue(eventID)
	cmdInfo.Service.User.RemoveEvent(host, eventID)
	embed := cmdInfo.createMsgEmbed(
		"Successfully Removed Event "+eventID+" from listings!", checkThumbURL, "Thank you for hosting!",
		successColor, format(
			createFields("Host", host.Mention(), true),
			createFields("Suggestion", "If you are planning on opening another event, it is safe to do so now.", false),
			createFields("Suggestion", "If your event was deleted by a moderator, please make sure to follow event guidelines.", false),
		))
	cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.ListingID, embed)
}
func closeEvent ( eventID string , cmdInfo CommandInfo ) { if ! cmdInfo . Service . Event . EventExists ( eventID ) { msg := cmdInfo . createMsgEmbed ( " " , errThumbURL , " " + eventID , errColor , format ( createFields ( " " , " " , false ) , ) ) cmdInfo . Ses . ChannelMessageSendEmbed ( cmdInfo . BotChID , msg ) return } host := cmdInfo . Service . Event . GetHost ( eventID ) err := cmdInfo . Service . Event . Close ( eventID , cmdInfo . AdminRole , cmdInfo . Msg . Author , cmdInfo . Msg . Member . Roles ) if err != nil { msg := cmdInfo . createMsgEmbed ( " " , errThumbURL , " " + eventID , errColor , format ( createFields ( " " , " " , false ) , ) ) cmdInfo . Ses . ChannelMessageSendEmbed ( cmdInfo . BotChID , msg ) return } cmdInfo . Service . User . RemoveAllQueue ( eventID ) cmdInfo . Service . User . RemoveEvent ( host , eventID ) embed := cmdInfo . createMsgEmbed ( " " + eventID + " " , checkThumbURL , " " , successColor , format ( createFields ( " " , host . Mention ( ) , true ) , createFields ( " " , " " , false ) , createFields ( " " , " " , false ) , ) ) cmdInfo . Ses . ChannelMessageSendEmbed ( cmdInfo . ListingID , embed ) }
closeEvent will handle closing events by host
closeEvent will handle closing events by host
// Error - event not found; can't close // store original host before removing event // attempt to close the event // Error - Permission denied // remove all people tracking event // Remove user from tracking // print msg