func closeTrade(tradeID string, cmdInfo CommandInfo) {
	if !cmdInfo.Service.Trade.Exists(tradeID) {
		// error - trade event doesn't exist
		msg := cmdInfo.createMsgEmbed(
			"Error: Trade Not Found", errThumbURL, "Trade ID: "+tradeID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied a valid Trade ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}

	// get the original creator of the trade
	host := cmdInfo.Service.Trade.GetHost(tradeID)
	// attempt to close the trade
	err := cmdInfo.Service.Trade.Close(tradeID, cmdInfo.Msg.Author, cmdInfo.Msg.Member.Roles, cmdInfo.AdminRole)
	if err != nil {
		// error - user does not have permission to close event
		msg := cmdInfo.createMsgEmbed(
			"Error: You do not have permission to delete this trade", errThumbURL, "Trade ID: "+tradeID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied the right Trade ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}
	// remove host from user tracking
	cmdInfo.Service.User.RemoveTrade(tradeID, host)

	// print msg
	embed := cmdInfo.createMsgEmbed(
		"Successfully Removed Trade "+tradeID+" from listings!", checkThumbURL, "Thank you for hosting!",
		successColor, format(
			createFields("Host", host.Mention(), true),
			createFields("Suggestion", "If you are planning on opening another trade, it is safe to do so now.", false),
			createFields("Suggestion", "If your trade was deleted by a moderator, please make sure to follow trade guidelines.", false),
		))
	cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.ListingID, embed)
}
// closeTrade is a helper func which closes a trade event and
// removes all trade tracking from the original user
closeTrade is a helper func which closes a trade event and
removes all trade tracking from the original user
// closeTrade is a helper func which closes a trade event and // removes all trade tracking from the original user
func closeTrade(tradeID string, cmdInfo CommandInfo) {
	if !cmdInfo.Service.Trade.Exists(tradeID) {
		msg := cmdInfo.createMsgEmbed(
			"Error: Trade Not Found", errThumbURL, "Trade ID: "+tradeID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied a valid Trade ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}
	host := cmdInfo.Service.Trade.GetHost(tradeID)
	err := cmdInfo.Service.Trade.Close(tradeID, cmdInfo.Msg.Author, cmdInfo.Msg.Member.Roles, cmdInfo.AdminRole)
	if err != nil {
		msg := cmdInfo.createMsgEmbed(
			"Error: You do not have permission to delete this trade", errThumbURL, "Trade ID: "+tradeID, errColor,
			format(
				createFields("Suggestion", "Try checking if you supplied the right Trade ID.", false),
			))
		cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.BotChID, msg)
		return
	}
	cmdInfo.Service.User.RemoveTrade(tradeID, host)
	embed := cmdInfo.createMsgEmbed(
		"Successfully Removed Trade "+tradeID+" from listings!", checkThumbURL, "Thank you for hosting!",
		successColor, format(
			createFields("Host", host.Mention(), true),
			createFields("Suggestion", "If you are planning on opening another trade, it is safe to do so now.", false),
			createFields("Suggestion", "If your trade was deleted by a moderator, please make sure to follow trade guidelines.", false),
		))
	cmdInfo.Ses.ChannelMessageSendEmbed(cmdInfo.ListingID, embed)
}
func closeTrade ( tradeID string , cmdInfo CommandInfo ) { if ! cmdInfo . Service . Trade . Exists ( tradeID ) { msg := cmdInfo . createMsgEmbed ( " " , errThumbURL , " " + tradeID , errColor , format ( createFields ( " " , " " , false ) , ) ) cmdInfo . Ses . ChannelMessageSendEmbed ( cmdInfo . BotChID , msg ) return } host := cmdInfo . Service . Trade . GetHost ( tradeID ) err := cmdInfo . Service . Trade . Close ( tradeID , cmdInfo . Msg . Author , cmdInfo . Msg . Member . Roles , cmdInfo . AdminRole ) if err != nil { msg := cmdInfo . createMsgEmbed ( " " , errThumbURL , " " + tradeID , errColor , format ( createFields ( " " , " " , false ) , ) ) cmdInfo . Ses . ChannelMessageSendEmbed ( cmdInfo . BotChID , msg ) return } cmdInfo . Service . User . RemoveTrade ( tradeID , host ) embed := cmdInfo . createMsgEmbed ( " " + tradeID + " " , checkThumbURL , " " , successColor , format ( createFields ( " " , host . Mention ( ) , true ) , createFields ( " " , " " , false ) , createFields ( " " , " " , false ) , ) ) cmdInfo . Ses . ChannelMessageSendEmbed ( cmdInfo . ListingID , embed ) }
closeTrade is a helper func which closes a trade event and
removes all trade tracking from the original user
closeTrade is a helper func which closes a trade event and removes all trade tracking from the original user
// error - trade event doesn't exist // get the original creator of the trade // attempt to close the trade // error - user does not have permission to close event // remove host from user tracking // print msg