extraneous closing bracket on botHasPermissions