func (ts tradeStore) Close(tradeID string, user *discordgo.User, userRoles []string, adminID string) error {
	ts.m.Lock()
	defer ts.m.Unlock()
	val := ts.ts[tradeID]
	if val.DiscordUser.ID != user.ID && !containsRole(adminID, userRoles) {
		return errors.New("you do not have permission to close this event")
	}
	delete(ts.ts, tradeID)
	return nil
}
// Close will close a trade event. If the user does not have permission to close the event, the func
// will return an error
Close will close a trade event. If the user does not have permission to close the event, the func
will return an error
// Close will close a trade event . If the user does not have permission to close the event the func // will return an error
func (ts tradeStore) Close(tradeID string, user *discordgo.User, userRoles []string, adminID string) error {
	ts.m.Lock()
	defer ts.m.Unlock()
	val := ts.ts[tradeID]
	if val.DiscordUser.ID != user.ID && !containsRole(adminID, userRoles) {
		return errors.New("you do not have permission to close this event")
	}
	delete(ts.ts, tradeID)
	return nil
}
func ( ts tradeStore ) Close ( tradeID string , user * discordgo . User , userRoles [ ] string , adminID string ) error { ts . m . Lock ( ) defer ts . m . Unlock ( ) val := ts . ts [ tradeID ] if val . DiscordUser . ID != user . ID && ! containsRole ( adminID , userRoles ) { return errors . New ( " " ) } delete ( ts . ts , tradeID ) return nil }
Close will close a trade event.
Close will close a trade event .