Skip to content

func (Vehicle) OpenTrunk Not Working #55

@Rudi9719

Description

@Rudi9719

Whenever calling the v.OpenTrunk("front") or v.OpenTrunk("rear") functions, I get an error 400 Bad Request. Was the API moved or were the names changed?

switch trunk {
	case "rear":
	case "front":
		err := v.OpenTrunk(strings.ToLower(trunk))
		if err != nil {
			handleError(err, m, "There was an error opening your trunk. Contact @rudi9719 for more information with code %+v")
			return
		}
	default:
		k.SendMessageByConvID(m.ConvID, "You must supply front or rear.")
		return
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions